Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack-encore - not compatible #43

Open
seetpalsingh opened this issue Dec 2, 2019 · 3 comments
Open

webpack-encore - not compatible #43

seetpalsingh opened this issue Dec 2, 2019 · 3 comments

Comments

@seetpalsingh
Copy link

I tried to implement this plugin in symfony(webpack encore).

but it reflects below issue:

WAIT Compiling... 12:58:04

ERROR Failed to compile with 7 errors 12:58:09

These relative modules were not found:

  • ./Buffer in ./node_modules/protip/protip.min.js
  • ./Class in ./node_modules/protip/protip.min.js
  • ./Constants in ./node_modules/protip/protip.min.js
  • ./GravityParser in ./node_modules/protip/protip.min.js
  • ./GravityTester in ./node_modules/protip/protip.min.js
  • ./Item in ./node_modules/protip/protip.min.js
  • ./PositionCalculator in ./node_modules/protip/protip.min.js

this to very urgent, plzzzzzz sort it out.

@wintercounter
Copy link
Owner

The minfied file is already browser ready, the whole thing is not meant to be imported as a module. If you want to do that, you can try to import from src as:

import 'protip/src/Plugin'

Not tested tho.

@seetpalsingh
Copy link
Author

worked, thanks.

But other thing is I am unable to find examples of use of your plugin in different variations.

I understand you did effort to make this example tool to test the requirement on page "http://protip.rocks/"

but, that will be helpful if you can provide the script compiled from that tool on your home page.

for e.g. https://coolcarousels.frebsite.nl/c/67/ . if you click ok on [...] , you will get example code for it.

@seetpalsingh
Copy link
Author

seetpalsingh commented Dec 3, 2019

currently I am trying to plug your protip into old project without making much noice.

like:

<a href="javascript:void(0);" class="delete-btn" data-toggle="tooltip" data-tooltip="Remove"> <i class="material-icons">delete</i></a>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants