Closed mklueh closed 1 year ago
@mklueh Could you run this command inside your project and share the output?
npx envinfo --system --browsers --binaries --npmPackages vite,vite-plugin-web-extension
Hi @aklinker1
this is the output
System:
OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
CPU: (5) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Memory: 3.21 GB / 9.72 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.19.1 - /usr/bin/node
Yarn: 3.4.1 - ~/.yarn/bin/yarn
npm: 8.19.4 - ~/workspace/my-project/node_modules/.bin/npm
Browsers:
Chrome: 110.0.5481.177
npmPackages:
vite: ^4.1.4 => 4.1.4
vite-plugin-web-extension: ^2.0.3 => 2.0.3
Hmm, darn not windows. I just fixed a problem like this for windows, and you're also on the latest version...
All your screenshots look correct. Without looking at your full configuration, I can't tell what's causing this error. Can you share a git repo with a minimal reproduction?
@aklinker1 I'll do that as soon as I have time.
But to be clear, it worked one week ago 😃 not sure if it was an older version back then. I might try to downgrade and try again
I was able to reproduce this. It's because you're using Vite 4, v2 only supports vite 3. Run npm i vite@3.2.5
and it will work for you. I'm looking into vite 4 support now. See #67
This has been fixed in v3.0.0
by adding vite 4 support. Just update the plugin version, and you should be good to go.
pnpm i vite-plugin-web-extension@latest
@aklinker1 nice, thank you very much :)
Hello,
I'm getting this error out of the sudden
and the browser does not start anymore.
does anyone have an idea what is going wrong?