Closed MarZab closed 2 weeks ago
vite is used as a direct dependancy in the project but marked as only a peer in package.json.
package.json
The issue materialises itself with using yarn with nodeLinker: pnpm that has strict package dependency resolution.
yarn
nodeLinker: pnpm
The temporary fix is to mark vite as a dependancy in .yarnrc.yml
.yarnrc.yml
nodeLinker: pnpm packageExtensions: "vite-tsconfig-paths@*": dependencies: vite: "*"
Seems like an issue with Yarn? Peer dependencies are meant to be directly imported.
vite is used as a direct dependancy in the project but marked as only a peer in
package.json
.The issue materialises itself with using
yarn
withnodeLinker: pnpm
that has strict package dependency resolution.The temporary fix is to mark vite as a dependancy in
.yarnrc.yml