Search
Get Started
P
Prisma
•
2y ago
Arkana
PrismaClientInitializationError
Hey can anybody please help me out with this
, i
've tried rechecking the
.env file
, restarted servers
,
"stack overflow
"d for hours
.
.
.please do kindly help me out here
.
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,605
Members
View on Discord
Was this page helpful?
Yes
No
R
RaphaelEtim
•
8/1/24, 1:41 PM
Hi
@Arkana
What does your connection string look like for your environment variable
DATABASE_URL
DATABASE_URL
?
R
RaphaelEtim
•
8/1/24, 1:42 PM
I can see that your provider is
. Your connection string should look like
A
Arkana
OP
•
8/1/24, 2:03 PM
yes it does
A
Arkana
OP
•
8/1/24, 2:04 PM
probably shouldn
't have uploaded the
.env file lol but i really need this fixed asap
A
Arkana
OP
•
8/1/24, 2:08 PM
@RaphaelEtim
Original message was deleted
G
gnarley_farley.
•
8/1/24, 2:17 PM
You mad bro
. Remove this
A
Arkana
OP
•
8/1/24, 2:18 PM
A
Arkana
OP
•
8/1/24, 2:18 PM
i think this should do
!
G
gnarley_farley.
•
8/1/24, 2:19 PM
You using an sql lite db
?
G
gnarley_farley.
•
8/1/24, 2:20 PM
First go setup a proper db
. Postgres or SQl
. Then Put the details in
. Then go from there
. No one really using sqlite in production
.
G
gnarley_farley.
•
8/1/24, 2:20 PM
I would not spend hours trying to fix that
A
Arkana
OP
•
8/1/24, 2:33 PM
i just need this to work
! TwT
A
Arkana
OP
•
8/1/24, 2:33 PM
not for production tbf
G
gnarley_farley.
•
8/1/24, 2:37 PM
What framework are you using
? nextjs
?
G
gnarley_farley.
•
8/1/24, 2:41 PM
Just came across this
, might be relevant to your use case
G
gnarley_farley.
What framework are you using? nextjs?
A
Arkana
OP
•
8/1/24, 2:44 PM
yes
G
gnarley_farley.
Just came across this, might be relevant to your use case
A
Arkana
OP
•
8/1/24, 2:45 PM
ohhh
! alr
A
Arkana
OP
•
8/1/24, 2:45 PM
thanks a ton man
:
)
G
gnarley_farley.
•
8/1/24, 2:48 PM
Im currently also trying to get it working on nextjs with app directory
G
gnarley_farley.
•
8/1/24, 2:48 PM
Not fun at all
. Not sure why but they are still not edge compatible
A
Arkana
OP
•
8/1/24, 2:50 PM
well one needs to add this to their package
.json
A
Arkana
OP
•
8/1/24, 2:50 PM
also take care of typesafety
A
Arkana
OP
•
8/1/24, 2:50 PM
fml
G
gnarley_farley.
Not fun at all. Not sure why but they are still not edge compatible
A
Arkana
OP
•
8/1/24, 2:50 PM
yeah man true
, new day new bug
:3
G
gnarley_farley.
•
8/1/24, 2:54 PM
Yeah it
's always been quite clunky
. I was willing to deal with that
. But this is the final straw for me
G
gnarley_farley.
•
8/1/24, 2:54 PM
I will report if I find a solution
Original message was deleted
A
Arkana
OP
•
8/1/24, 2:59 PM
i tried drizzle lmao
, faced a few issues there too smh
A
Arkana
OP
•
8/1/24, 3:00 PM
yeah i got rid of sqlite and going for postgres
A
Arkana
OP
•
8/1/24, 3:00 PM
any clue about this error mate
?
G
gnarley_farley.
•
8/1/24, 3:01 PM
Thats to do with the encoding in your strings
G
gnarley_farley.
•
8/1/24, 3:01 PM
Check you might have some stuff where you are writing words or text on your page
G
gnarley_farley.
•
8/1/24, 3:01 PM
You need to use escape characters instead of apostrophes etc
G
gnarley_farley.
•
8/1/24, 3:02 PM
You can usually also get around it by using certain brackets and things
G
gnarley_farley.
•
8/1/24, 3:04 PM
G
gnarley_farley.
•
8/1/24, 3:04 PM
There are various strategies to avoid it
. Just give it a google
. Usually happens when you typing text directly into the components like that
G
gnarley_farley.
•
8/1/24, 3:05 PM
You can create seperate config files for your website then import those variables
. It works well and is a neat way to work
A
Arkana
OP
•
8/1/24, 3:13 PM
yeah fixed it but more new errors smh
A
Arkana
OP
•
8/1/24, 3:14 PM
post implicitly has any type here
, ts and it
's typesafety TwT
A
Arkana
OP
•
8/1/24, 3:14 PM
i
'll kms
A
Arkana
post implicitly has any type here, ts and it's typesafety TwT
A
Arkana
OP
•
8/1/24, 3:14 PM
that
's refraining me from deploying it
. throwing an error lol
G
gnarley_farley.
•
8/1/24, 3:20 PM
Try chatgpt or claude to show you how to do all the type assertions
.
G
gnarley_farley.
•
8/1/24, 3:20 PM
You can change the rules as well
. But best to just fix it
.
G
gnarley_farley.
•
8/1/24, 3:21 PM
post
:
{id
: string
,
t
i
t
l
e
:string
}
A
Arkana
OP
•
8/1/24, 3:29 PM
yeah doing that manually rn
A
Arkana
OP
•
8/1/24, 3:29 PM
time consuming
G
gnarley_farley.
•
8/1/24, 3:33 PM
That
's typescript for you
. But very much worth it
A
Arkana
OP
•
8/1/24, 3:39 PM
what even are these
A
Arkana
OP
•
8/1/24, 3:43 PM
is prisma not compatible with pnpm
?
A
Arkana
OP
•
8/1/24, 3:43 PM
god knows why i decided trying out pnpm for this project smh
Next page
sqlite
sqlite
"file:../dev.db"
"file:../dev.db"