how can i import node modules in vanillajs project? #814
Unanswered
cloudchamb3r
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When i wrote HelloWorld code on content script it works well.
But after importing few modules ,
npm run build
emit Maximum call stack size exceeded error.I found that just typing one line of import statement, such as
import html2canvas from "html2canvas"
, on the top of the content script, it makes infinite recursion. (surely i'd installed node modules correctly)Please tell me what i'm doing wrong
Thanks for reading ;)
Beta Was this translation helpful? Give feedback.
All reactions