Unknown argument `stripeCustomerId` when creating customer on signup
Hey, I'm having a new issue where updating the user's
stripeCustomerId
automatically on signup, gives me a prisma error. I found an other thread here where the issue was the schema not having stripeCustomerId
set as optional, but my schema does. Has anyone else had this issue?Solution:Jump to solution
ok yea it was my fault. I got a warning from prisma to set an output path for the generated client
Warning: You did not specify an output path for your
generator in schema.prisma. This behavior is deprecated and will no longer be supported in Prisma 7.0.0.
, but then forgot to change the PrismaClient import statement from the old default path.5 Replies
I'm using BA and BA stripe plugin
v1.2.7
and prisma client v6.6.0
I already migrated the new schema as well 🤔
I even reset the db and the problem still remains
Perhaps I am still not understanding prisma and how to properly migrate the schema changes to the prisma client 🙈Does everything else work? Maybe if so it might not be schema migration issue? Not certain though. 🤔
Havent tried yet, but i think its on my end, because if i try to manually update the user, i dont even get the ahtocomplete from typescript for that field. Something must be wrong with my generator i think. Will take a look when I get to it and report back.
🫡 Sounds good.
Also just tested on my end and everything works fine.
But not using Prisma, using Drizzle, so likely different story.
Solution
ok yea it was my fault. I got a warning from prisma to set an output path for the generated client
Warning: You did not specify an output path for your
generator in schema.prisma. This behavior is deprecated and will no longer be supported in Prisma 7.0.0.
, but then forgot to change the PrismaClient import statement from the old default path.