Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.76k stars 104 forks source link

`use of undeclared crate or module 'prisma'` after updating to current version #298

Closed bangbaew closed 1 year ago

bangbaew commented 1 year ago

image This is the update information after running cargo update, and it causes the app to break, tried rerunning prisma generate multiple times, didn't fix the problem, my version before this update worked fine. image image

bangbaew commented 1 year ago

image This error also happens on all versions when i use select.

Brendonovich commented 1 year ago

The first error is interesting as I don't remember changing anything about enum path resolution, but the second one is likely related to this: https://prisma.brendonovich.dev/reading-data/select-include#setup.

Oh wait are you using branch = "main"? df1d2ac1 is an unreleased commit.

bangbaew commented 1 year ago

The first error is interesting as I don't remember changing anything about enum path resolution, but the second one is likely related to this: https://prisma.brendonovich.dev/reading-data/select-include#setup.

Oh wait are you using branch = "main"? df1d2ac1 is an unreleased commit.

Sorry for not reading carefully, the second one is fixed now, thanks! And yes, I was using main branch in this issue, I thought it was the released one.