#How to install @vite-pwa/astro in Astro V3 (if you encounter npm package error)

3 messages · Page 1 of 1 (latest)

prime rock
#

[Sry for my bad english]

When i reinstall my @vite-pwa/astro , i was getting message like this.

npm i @vite-pwa/astro -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: teal-transit@0.0.1
npm ERR! Found: astro@3.0.3
npm ERR! node_modules/astro
npm ERR! astro@"^3.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer astro@"^1.6.0 || ^2.0.0" from @vite-pwa/astro@0.1.1
npm ERR! node_modules/@vite-pwa/astro
npm ERR! dev @vite-pwa/astro@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

Any idea how to solve this ? I really have no idea about it. T-T

agile rivet
#

It looks like @vite-pwa/astro currently only supports versions 1.6.0 up to 2.10.15, I suggest creating an issue on the repo for supporting Astro v3.0 https://github.com/vite-pwa/astro

prime rock