vite-plugin-electron icon indicating copy to clipboard operation
vite-plugin-electron copied to clipboard

Could not resolve peer dependency vite: 3.2.0

Open hafiidz opened this issue 2 years ago • 4 comments

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?

hafiidz avatar Oct 11 '22 02:10 hafiidz

You can use 0.9.x

caoxiemeihao avatar Oct 11 '22 04:10 caoxiemeihao

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:

image image

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?

hafiidz avatar Oct 11 '22 04:10 hafiidz

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.

hafiidz avatar Oct 11 '22 04:10 hafiidz

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

image

caoxiemeihao avatar Oct 11 '22 08:10 caoxiemeihao

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]

evil-shrike avatar Oct 17 '22 11:10 evil-shrike

+1

Lizhiying123456 avatar Oct 19 '22 08:10 Lizhiying123456

当使用[email protected]的时候 在vite.config.ts中引入 配置完成后 启动项目会出现问题 image

Lizhiying123456 avatar Oct 19 '22 09:10 Lizhiying123456

看来n多人已经遇到了这个问题

RealPhper avatar Oct 20 '22 07:10 RealPhper

Will remove 3.2.0 needed in next version. Coming soon :)

caoxiemeihao avatar Oct 20 '22 14:10 caoxiemeihao

Hi everyone! Upgrade vite-plugin-electron and vite-plugin-electron-renderer to v0.10.2 :)

caoxiemeihao avatar Oct 24 '22 02:10 caoxiemeihao