Coder Social home page Coder Social logo

Comments (9)

krishnakanta04 avatar krishnakanta04 commented on September 26, 2024 7

There some compatibility issues between "drizzle-orm": "^0.31.2" and "react": "^18",

Upgrade the version React and React DOM to the latest stable as of now.

"react": "^18.3.1",
"react-dom": "^18.3.1"

It worked for me 🙂
Hope it helps ...

from drizzle-orm.

joshfom avatar joshfom commented on September 26, 2024 4

I installed with legacy peer fag npm i drizzle-orm --legacy-peer-deps
Or manually add in package.json then run npm install --legacy-peer-deps

Then I am able to do npm I drizzle-orm with no issue

Worked for me then I can run

from drizzle-orm.

JulianMiguelAngle avatar JulianMiguelAngle commented on September 26, 2024 1

There some compatibility issues between "drizzle-orm": "^0.31.2" and "react": "^18",

Upgrade the version React and React DOM to the latest stable as of now.

"react": "^18.3.1",
"react-dom": "^18.3.1"

It worked for me 🙂 Hope it helps ...

Thanks krishnakanta

from drizzle-orm.

nettum avatar nettum commented on September 26, 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

from drizzle-orm.

AbhinasRegmi avatar AbhinasRegmi commented on September 26, 2024

Did force install fix it?

from drizzle-orm.

nettum avatar nettum commented on September 26, 2024

@AbhinasRegmi Yes it does.

from drizzle-orm.

mauriceackel avatar mauriceackel commented on September 26, 2024

This might be a duplicate of #2251

from drizzle-orm.

AbhinasRegmi avatar AbhinasRegmi commented on September 26, 2024

Seems like it. I will close this issue 😔

from drizzle-orm.

theghostwhoforks avatar theghostwhoforks commented on September 26, 2024

Why does the ORM depend on react? Can we install drizzle without react?

from drizzle-orm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.