-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstream dependency conflict with Vite 5 when using npm #68
Comments
Hey @CookedApps, sorry about that: this is fixed in |
Looking at the actual "peerDependencies": {
"react": "18.x.x",
"react-dom": "18.x.x",
"vike": "^0.4.151",
"vite": "^4.3.8"
}, https://www.npmjs.com/package/vike-react/v/0.3.8?activeTab=code |
Alright, thank you! |
|
Description
When attempting to use
vike-react
in a project withVite 5
as a dependency, I am encountering an upstream dependency conflict. This issue occurs specifically when using npm as the package manager. Strangely, the samepackage.json
configuration works without issues when using pnpm, which leads me to believe there might be a compatibility issue with npm.I am not familiar with pnpm and prefer using npm as it is the default package manager for Node.js. However, due to this issue, I am considering switching to pnpm, though I believe compatibility with npm should be maintained in vike-react.
Steps to Reproduce
package.json
configuration.npm install
to install dependencies.Expected Behavior
Given that
vike-react
specifies compatibility withvite@^5.0.10
in its peer dependencies, I would expect npm to resolve these dependencies without any conflicts.Actual Behavior
npm throws an upstream dependency conflict error when attempting to install the packages, specifically citing an issue with
vike-react
andVite 5
. This does not occur with pnpm, suggesting a specific issue with npm's resolution process.package.json
ConfigurationError Log
Environment
The text was updated successfully, but these errors were encountered: