JohnBra / vite-web-extension

Vite web extension template. Setup with React, Typescript and TailwindCSS
MIT License
537 stars 82 forks source link

Cannot use import in content script #8

Closed G4den closed 1 year ago

G4den commented 1 year ago

Im getting "Uncaught SyntaxError: Cannot use import statement outside a module" When trying to use import within a content script.

https://stackoverflow.com/questions/48104433/how-to-import-es6-modules-in-content-script-for-chrome-extension

This stackoverflow post here explains it can get solved by wrapping it with Githubissues.

  • Githubissues is a development platform for aggregating issues.