P
Prisma2w ago
rain

Prisma #7 Seed issue

after upgrading to prisma version 7, i can no longer run the seed file Package.json
"prisma:seed": "bun run prisma/seed.ts"
"prisma:seed": "bun run prisma/seed.ts"
after running the command:
PS C:\Users\user\Desktop\qutrek-api> bun run prisma:seed
$ bun run prisma/seed.ts
error: Cannot find module '@prisma/client/runtime/library' from 'C:\Users\user\Desktop\qutrek-api\prisma\generated\internal\class.ts'

Bun v1.3.2 (Windows x64)
error: script "prisma:seed" exited with code 1
PS C:\Users\user\Desktop\qutrek-api>
PS C:\Users\user\Desktop\qutrek-api> bun run prisma:seed
$ bun run prisma/seed.ts
error: Cannot find module '@prisma/client/runtime/library' from 'C:\Users\user\Desktop\qutrek-api\prisma\generated\internal\class.ts'

Bun v1.3.2 (Windows x64)
error: script "prisma:seed" exited with code 1
PS C:\Users\user\Desktop\qutrek-api>
4 Replies
Prisma AI Help
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
Nurul
Nurul2w ago
If your "prisma:seed" is in the package.json file then it is expected. The seed command needs to be in prisma.config.ts file
Nurul
Nurul2w ago
Could you add the config file like this and then run db seed command? It should work

Did you find this page helpful?