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

[BUG]: drizzle-orm@0.30.10 not working with react@18.3.1 #2251

Open
davidaragundy opened this issue May 4, 2024 · 14 comments
Open

[BUG]: drizzle-orm@0.30.10 not working with react@18.3.1 #2251

davidaragundy opened this issue May 4, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@davidaragundy
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

react@"18.2.0" is marked as the peer dependency

image

Expected behavior

the package should be installed with no problem :)

Environment & setup

No response

@codePassion-dot
Copy link

I'm experiencing the same issue, it happen to me yesterday trying to add drizzle to a fresh nextjs project

@Hrid-a
Copy link

Hrid-a commented May 23, 2024

I am getting the same error, is drizzle-orm not compatible with react@18.3.1
is there any solution guys

@dragerra
Copy link

dragerra commented May 27, 2024

it's look like the latest version of drizzle kit(0.21.4) doesn't work with react 18.3
drizzle-orm@0.30.10 is still working fine for me
Just downgrade drizzle kit(0.21.4) to drizzle kit(0.21.2):
npm install drizzle-kit@0.21.2

@Carlos-err406
Copy link

Carlos-err406 commented Jun 6, 2024

im also getting this on a fresh nextjs project when installing drizzle-orm
tried installing all versions of drizzle-orm down to 0.30.07 and still got the error,

@joshfom
Copy link

joshfom commented Jun 13, 2024

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

@LegendNihal
Copy link

is there any statement from drizzle team?

@jacksonsophat
Copy link

It's discouraging that there has been quite a few problems with Drizzle. I'm not having the same problem, and can't find a good answer yet.

@Hrid-a
Copy link

Hrid-a commented Jul 3, 2024

npm install drizzle-orm --legacy-peer-deps
adding the --legacy-peer-deps will fix the problem

@JoRyGu
Copy link

JoRyGu commented Jul 7, 2024

npm install drizzle-orm --legacy-peer-deps adding the --legacy-peer-deps will fix the problem

This is not a "fix," this is a workaround. The drizzle team needs to update their peer dependencies. Using --legacy-peer-deps is pretty unlikely to break anything but I would probably adjust the versions of react you're using before reaching for this solution. In this case, setting the semver of react and react-dom to ~18.12.0 instead of ^18 should clear up the issue in a safer way until the drizzle team updates their peer deps to the latest version of react.

@arthurseredaa
Copy link

I have the same problem. When will the developers fix it?

@kornumic
Copy link

Same problem here, fresh next.js project

@mbrevda
Copy link

mbrevda commented Jul 15, 2024

In addition to having this issue, I'm wondering why an orm depends on a front-end framework?

@Carlos-err406
Copy link

Carlos-err406 commented Jul 15, 2024

In addition to having this issue, I'm wondering why an orm depends on a front-end framework?

i guess is for the drizzle studio?
https://orm.drizzle.team/drizzle-studio/overview

@mbrevda
Copy link

mbrevda commented Jul 15, 2024

In addition to having this issue, I'm wondering why an orm depends on a front-end framework?

i guess is for the drizzle studio?
https://orm.drizzle.team/drizzle-studio/overview

Sounds plausible but wouldn't that be published as its own, optional, package?

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