-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
If use "webextension-polyfill" in project. Extension has error. "Uncaught SyntaxError: Cannot use import statement outside a module" #39
Comments
Thank you for your contribution. We will check and reply to you as soon as possible. |
Could you please provide a more detailed reproduction of the issue? I hope i can help you. I tried with the following process but couldn't reproduce the problem.
import reloadOnUpdate from "virtual:reload-on-update-in-background-script";
import polyfill from "webextension-polyfill";
reloadOnUpdate("pages/background");
console.log("background loaded");
console.log("polyfill", polyfill); |
I also face this issue on including this in the content Script. Or for including any external package in the content script for that matter I saw your comment regarding how that might not be possible, but is there any workaround? I have definitely seen extentions using the webextension-polyfill in the content scripts and would really appreaciate any help in using that in this template. |
The usage of webextension-polyfill seems to be detailed in the repo below. |
This issue has been closed for a long time with no additional information provided. If anyone encounters the same issue, you can re-open it with your running environment and error logs attached. |
Steps:
Question:
How to use common module without "import"?
The text was updated successfully, but these errors were encountered: