-
Notifications
You must be signed in to change notification settings - Fork 517
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
Tippy as a VueJS directive : webpack compilation error (_tippy2.default is not a constructor) #22
Comments
I have the same error : My directive file :
|
I'm switching to Rollup for bundle generation for v0.4.0 so it might solve the issue... |
Thanks ! |
v0.4.0 is out now... give it a try |
Not :( Always the same error... |
Maybe try |
Not again :( But after a search, i found it : http://stackoverflow.com/questions/20534702/node-js-use-of-module-exports-as-a-constructor
So i tried to modifiy your dist file by adding (at the very end) : So, in your source code, i think you have to write this :
Add the module.exports line, compile and submit a v0.5.0 :) Regards, |
I had that in v0.3.5, but with Rollup it broke when using the browser version so I removed it, lol The browser version works too if I do I solved it... need to export it from the |
v0.4.1 should work now, can you test it out? |
It works now :) Thanks for your work ! |
Hi !
First, thanks for your great tooltip library :)
I don't know if my problem comes from tippy, vuejs, webpack.. So i try my chance here ^^
I'm trying to create a vuejs directive, to generate tippy tooltips into my SPA (compiled with webpack2)
My Vuejs Directive file :
In my Webpack.config file, i created an alias to resolve the tippy.js dist file only, cuz i don't want to import the scss file too :
When compiling, Webpack returns an error :
TypeError: _tippy2.default is not a constructor...
WORKAROUND :
If i include tippy.js into my index.html file, and remove my import Tippy from 'tippy' in my directive file tooltips works !!
index.html :
<script src="node_modules/tippy.js/dist/tippy.js"></script>
My directive file :
My wish is to include Tippy from my directive file, and remove it from my index.html file.
Please can someone could telle me where i am wrong ?
Thanks :)
The text was updated successfully, but these errors were encountered: