schema.prisma not found after changing the location
Hello,
I'm new in NuxtJS and I'm trying to add Prisma to my NuxtJS environment. So I followed the steps https://nuxt.com/modules/prisma.
When I do that, prisma auto create :
- A ./lib folder with prisma.ts file inside
- A ./prisma folder with schema.prisma file inside
The thing is I want to place the schema.prisma file in my ./server/prisma folder and not in a prisma folder at the root of the NuxtJS project.
For doing that I followed the steps here : https://www.prisma.io/docs/orm/prisma-schema/overview/location#prisma-schema-location so I have in my package.json file :
The problem is when I do a npm run dev or prisma migrate dev the CLI didn't find the schema.prisma file and recreate the file at the default location (./prisma/schema.prisma) (Screenshot 1)
BUT at the end of the processes he said "Prisma schema loaded from server\prisma\schema.prisma" (Screenshot 2)
Any idea why that happened ?
I'm new in NuxtJS and I'm trying to add Prisma to my NuxtJS environment. So I followed the steps https://nuxt.com/modules/prisma.
When I do that, prisma auto create :
- A ./lib folder with prisma.ts file inside
- A ./prisma folder with schema.prisma file inside
The thing is I want to place the schema.prisma file in my ./server/prisma folder and not in a prisma folder at the root of the NuxtJS project.
For doing that I followed the steps here : https://www.prisma.io/docs/orm/prisma-schema/overview/location#prisma-schema-location so I have in my package.json file :
The problem is when I do a npm run dev or prisma migrate dev the CLI didn't find the schema.prisma file and recreate the file at the default location (./prisma/schema.prisma) (Screenshot 1)
BUT at the end of the processes he said "Prisma schema loaded from server\prisma\schema.prisma" (Screenshot 2)
Any idea why that happened ?

