Open CalmProton opened 1 year ago
Changing file name vite.config.js
to vite.config.mjs
worked for me
https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only
renaming vite.config.js/vite.config.ts to vite.config.mjs/vite.config.mts
Same as @lokesh-coder, vite.config.ts
to vite.config.mts
worked for me :)
Alternatively, simply add "type":"module"
to your package.json
as noted in the getting started guide.
Build tool
Vite
Where do you see the problem?
Describe the bug
It occurs whenever running either build or dev commands, and fails almost immediately. It started happening after upgrading to 2.0.0
Reproduction
Created a repo - https://github.com/CalmProton/crxjs-vite-notafunction
npm i
npm run dev
ornpm run build
Logs
System Info
Severity
blocking all usage of RPCE