Closed RC-14 closed 1 year ago
Personally I'd be OK with the "fix" for this being to just include "type": "module"
in the package.json
of the manual installation guide and mentioning it below in a warning box.
As it is right now the manual installation guide leaves you with an unusable project which is pretty annoying if you want to use it to migrate an existing code base.
Thanks for the feedback! I've updated the docs: https://github.com/aklinker1/vite-plugin-web-extension/commit/29f74776bb1b32976291b4054e56dae81b8958e7
https://vite-plugin-web-extension.aklinker1.io/guide/#manual-project-setup
Nice. I'll close this issue then.
Summary
I manually created a project but when I tried to run it with
vite dev
or build it withvite build
I got an error:This can be fixed by adding
"type": "module"
to thepackage.json
which I noticed when I looked at the templates.Reproduction
npm i
npm run dev
ornpm run build
Environment