-
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
TypeError when using html template element #33
Comments
That error occurs when it tries to stringify itself: http://stackoverflow.com/questions/11616630/json-stringify-avoid-typeerror-converting-circular-structure-to-json So I guess Or.. maybe something else. I think I'll use a different method and do deep cloning to avoid problems |
Well no, I added '.test' for the example but it was in fact a selector in a variable. Sorry I can't easily produce something for you to see the issue. Feel free to close this one :) |
For a second I was wondering how stringify handled HTML Elements being passed through, but it seems to work without errors here: https://codepen.io/anon/pen/aWmEZL |
Yes I started to test this way, that's why I have doubts with my webpack config. I just can't find why. I tried to export/expose Tippy as a global, but with the same result (a string with the selector works, but not an element). |
Can you paste the full code here? ...And I just noticed from that pen that if a tooltip is flipped, clicking on it causes glitchy behavior instead of a smooth hide... more fixes to come Edit: ^ was something I removed recently because I thought it was pointless, turns out it wasn't -_- |
I've switched to using Check v0.8.2: https://github.com/atomiks/tippyjs/releases/tag/v0.8.2 |
Sorry I can't paste the code, so I made a new webpack projet. I can't reproduce the bug tough.. I'll try your last version thanks. |
Any luck? |
Well it works for me now :) Thank you. |
Hello,
I use Webpack 2 to import Tippy, just with an alias:
Then when creating a new Tippy instance:
I got the following error:
It seems the HTMLElement is passed through the
JSON.stringify
method.I have doubts on my way to import Tippy with webpack, but I'm running out of things to try..
The text was updated successfully, but these errors were encountered: