Protip icon indicating copy to clipboard operation
Protip copied to clipboard

webpack-encore - not compatible

Open seetpalsingh opened this issue 5 years ago • 3 comments

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.

seetpalsingh avatar Dec 02 '19 12:12 seetpalsingh

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.

wintercounter avatar Dec 02 '19 13:12 wintercounter

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 avatar Dec 03 '19 07:12 seetpalsingh

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>

seetpalsingh avatar Dec 03 '19 07:12 seetpalsingh