Skip to content
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

Cannot install drizzle orm with react@18.2.0 #2270

Closed
AbhinasRegmi opened this issue May 7, 2024 · 5 comments
Closed

Cannot install drizzle orm with react@18.2.0 #2270

AbhinasRegmi opened this issue May 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@AbhinasRegmi
Copy link

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

No response

Describe the Bug

I am not able to npm install drizzle orm with next application. There appears to be a Conflicting peer dependency with react@18.2.0.

However, I tried the force install and it worked.

This is the error I got.

npm ERR! Could not resolve dependency:
npm ERR! drizzle-orm@"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"18.2.0" from react-native@0.74.1
npm ERR!   node_modules/react-native
npm ERR!     peer react-native@">0.73.0" from @op-engineering/op-sqlite@5.0.6
npm ERR!     node_modules/@op-engineering/op-sqlite
npm ERR!       peerOptional @op-engineering/op-sqlite@">=2" from drizzle-orm@0.30.10      
npm ERR!       node_modules/drizzle-orm
npm ERR!         drizzle-orm@"*" from the root project

Expected behavior

I should be able to install without the --force directive.

Environment & setup

I am using windows 11.
Next version is 14.2.3
Node version is 18.8
React Version is 18.2.0

@AbhinasRegmi AbhinasRegmi added the bug Something isn't working label May 7, 2024
@nettum
Copy link

nettum commented May 8, 2024

I just got the same error on a newly setup nextjs project. Here's the content from package.json. It's not been edited manually:

  "dependencies": {
    "@vercel/postgres": "^0.8.0",
    "next": "14.2.3",
    "react": "^18",
    "react-dom": "^18"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "eslint": "^8",
    "eslint-config-next": "14.2.3",
    "postcss": "^8",
    "tailwindcss": "^3.4.1",
    "typescript": "^5"
  }

System:

lsb_release -a && node -v && npm -v
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.4 LTS
Release:	22.04
Codename:	jammy
v20.11.1
10.2.4

@AbhinasRegmi
Copy link
Author

Did force install fix it?

@nettum
Copy link

nettum commented May 8, 2024

@AbhinasRegmi Yes it does.

@mauriceackel
Copy link

This might be a duplicate of #2251

@AbhinasRegmi
Copy link
Author

Seems like it. I will close this issue 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants