Closed LeoDog896 closed 1 year ago
Hey @LeoDog896 I've taken a look at this issue.
The plugin requires the installed vite version to be >= 3
and I've not included pre-releases.
"peerDependencies": {
vite: ">=3"
},
Since you are using a beta version 4.3.0-beta.5
of Vite you are facing this issue. You can downgrade to the last production release 4.2.1
which fixes this. Or if you would like to stay at the beta version you can use the --force
workaround for now and it should be resolved in the future once a 4.3.0
production release is made.
Alright, thanks for the clarification! 👍
Describe the Bug
When installing the plugin with
npm i -D vite-plugin-image-optimizer
, it throws an error with a mismatching peer version (in the case of me having a vite version v4 and above).If you are also experiencing this issue, you can just override it with
--force
.Steps to reproduce
npm i -D vite-plugin-image-optimizer
System Info