-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error "cannot use import statement outside a module" with React #63
Comments
This is because this module ships as native modules and the React ecoystem is some what legacy in this respect, I've got a PR to try to address this but i havent had time to test it properly, and would need to be a breaking change. https://github.com/Georgegriff/query-selector-shadow-dom/pull/53/files If you want to experiment with this you should be able to change your package.json entry for this package to: "query-selector-shadow-dom": "git://Georgegriff/query-selector-shadow-dom.git#consider_essm" If you have any time to help contribute/test t would be appreciated |
Cheers, will look into it and definitely contribute if I come up with a solution :) |
Did this solution get implemented? Is there a fork that can be used instead? Thanks! |
There isn't I would be open to contributions I started a pr but didn't get around to following it up, not sure when I will next get a chance to investigate #53 |
Thanks for your time following up with me - I really appreciate it. Sorry, I thought the PR above was fully finished. |
Could you tell me the mean of "change your package.json entry"? |
Bump on this -- also running into this issue! |
Getting an error when importing the module into a React script. Same works fine in a Node app or plain HTML. Does anyone have a fix?
The text was updated successfully, but these errors were encountered: