Comments (9)
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.
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.
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.
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.
Did force install fix it?
from drizzle-orm.
@AbhinasRegmi Yes it does.
from drizzle-orm.
This might be a duplicate of #2251
from drizzle-orm.
Seems like it. I will close this issue 😔
from drizzle-orm.
Why does the ORM depend on react? Can we install drizzle without react?
from drizzle-orm.
Related Issues (20)
- [BUG]: Using mysqlSchema after drizzle-kit 0.21.0 does not generate any output HOT 2
- [FEATURE]: Support for planetscale boost
- [BUG]: different table names
- [BUG]: Syntax error with generatedAlwaysAs when using `drizzle-kit push` HOT 2
- [BUG]: User defined types mismatch in drizzle-kit
- [BUG]: the order of columns is causing redeclaration of UNIQUE constraint when using "drizzle-kit push" HOT 2
- [BUG]: Type inference error on db.insert() when applying default values to table columns HOT 3
- [BUG]: Drizzle Zod Error - drizzle-kit push TypeError Cannot use 'in' operator to search for 'enumValues' in undefined HOT 1
- [BUG]: PostgresError: relation "public.artist" does not exist HOT 1
- [BUG]: snapshot.json data is malformed
- [BUG]: "TypeError: f.UPDATE_RULE.toLowerCase is not a function"
- [BUG]: `drizzle-kit introspect` generates `CURRENT_TIMESTAMP` without `sql` operator on `date` column
- [BUG]:drizzle typescript doesn't see boolean column
- [FEATURE]: Drizzle Kit Rollback failed migration in mysql
- [BUG] SQLite Big integer stored as blob is unqueriable
- [FEATURE]: Add `where` in one-to-one querying HOT 1
- [BUG]: Invalid schema for default array value in Introspect / Pull / Drizzle Studio
- [BUG]: Drizzle-kit introspect doesn't pull correct defautl statement
- [BUG]: Drizzle eslint bug --> it screams at you for not using where anytime delete keyword is used, even beyond drizzle context HOT 2
- [FEATURE]: SQL-in-JS for Schemas
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drizzle-orm.