vite-plugin-electron
vite-plugin-electron copied to clipboard
Could not resolve peer dependency vite: 3.2.0
npm WARN Could not resolve dependency:
npm WARN peer vite@">=3.2.0" from [email protected]
I am having another issue (require is not define in browser) and trying to update this plugin to latest version. However, there is a problem found with peer dependency, as attached above. I have checked, vite only has 3.1.7 as latest version. 3.2.0-beta.0 is available but is there a problem for npm to read that beta portion?
You can use 0.9.x
First of all, thanks for the reply and the great plugin here. Love it. Yes, I am currently using 0.9.x
, but encountered a weird bug where in browser mode (electron is working fine) I am encountering the following error:
Saw the 0.10.0 release might address this and try to get it. Do you have any other suggestion to address the error above ya?
Additional info, I am also using unplugin-icons
and @iconify/json
which is why there is additional folder there, but when after further testing, even with those two plugins disabled, I still have this problem, which I think is maybe related to electron-vite-plugin. Maybe.
require is not defined
, remove renderer: {}
option to resolve it.
Or you can use [email protected]
(not peer [email protected])
You can see this PR https://github.com/electron-vite/vite-plugin-electron/pull/89

same here, the latest vite-plugin-electron can't be installed from npm: Could not resolve dependency: peer vite@">=3.2.0" from [email protected]
+1
当使用[email protected]的时候 在vite.config.ts中引入 配置完成后 启动项目会出现问题
看来n多人已经遇到了这个问题
Will remove 3.2.0
needed in next version. Coming soon :)
Hi everyone! Upgrade vite-plugin-electron
and vite-plugin-electron-renderer
to v0.10.2
:)