-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unexpected token #231
Comments
So after extensive debugging I narrowed it down to a commented word ( I even made a demo repo: https://github.com/tfrijsewijk/klap-test In the original source code the comment was:
The problem is the word But holy smokes! This is weird |
So I went ahead and cloned So there's another clue edit: Changing it to I don't know if I want that or not, but I'm a bit at a loss here.. |
👋 @tfrijsewijk - my apologies for getting back little late on this one, and thank you so much for clear and minimal re-production of the original issue. You are also right in narrowing this down to rollup-plugin-node-globals. I tried this with simplified rollup build here and was able to re-produce the issue. This however works ok if you remove the dynamic import from At this point, I am unsure why this might be the case. We should create an issue with node-globals repo for now to get some feedback. |
🎉 This issue has been resolved in version 7.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi @osdevisnot - Don't mention it and thanks for resolving it. I'm upgrading right away :-) |
Hi,
Great lib! Looks promising. I'm developing a Leaflet plugin and I need to import some library from node_modules for that.
I receive the following error:
Line 1434:
It looks like klap has issues with the lazy
import
statement when an a node_module hasimport()
, if I rename it to something else all is fine (but I'm getting runtime errors, obviously).The imported code is ESM, do you have any idea why
klap
can't handle this?Thanks!
The text was updated successfully, but these errors were encountered: