mubaidr / vite-vue3-browser-extension-v3

Another vite powered web extension (chrome, firefox, etc.) starter template.
506 stars 67 forks source link

Uncaught SyntaxError: Cannot use import statement outside a module (at inject.ts.js:1:1) #30

Closed botshen closed 1 year ago

botshen commented 1 year ago
image image

After packaging the js or using the import statement, the browser will report an error

mubaidr commented 1 year ago

I just tested by building the extension and loading it in chrome, there is no error: https://github.com/mubaidr/vite-vue3-chrome-extension-v3/issues/28#issuecomment-1686613222

botshen commented 1 year ago

Thank you. It's fixed.