PrismaP
Prisma10mo ago
6 replies
verse

Module not found after v6.5.0 upgrade

After upgrading to v6.5.0 these errors occur.

✔ Generated Prisma Client (v6.5.0) to ./node_modules/.pnpm/@prisma+client@6.5.0_prisma@6.5.0_typescript@5.8.2__typescript@5.8.2/node_modules/@prisma/client in 63ms

Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)

Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate

   ▲ Next.js 15.2.4
   - Environments: .env

   Creating an optimized production build ...
Failed to compile.

./node_modules/.pnpm/@prisma+client@6.5.0_prisma@6.5.0_typescript@5.8.2__typescript@5.8.2/node_modules/@prisma/client/runtime/library.js:1:2932
Module not found: Can't resolve 'os'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/.pnpm/@auth+prisma-adapter@2.8.0_@prisma+client@6.5.0_prisma@6.5.0_typescript@5.8.2__typescript@5.8.2_/node_modules/@auth/prisma-adapter/index.js
./lib/auth.ts
./app/api/v1/auth/[...nextauth]/route.ts

./node_modules/.pnpm/@prisma+client@6.5.0_prisma@6.5.0_typescript@5.8.2__typescript@5.8.2/node_modules/@prisma/client/runtime/library.js:1:10153
Module not found: Can't resolve 'crypto'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/.pnpm/@auth+prisma-adapter@2.8.0_@prisma+client@6.5.0_prisma@6.5.0_typescript@5.8.2__typescript@5.8.2_/node_modules/@auth/prisma-adapter/index.js
./lib/auth.ts
./app/api/v1/auth/[...nextauth]/route.ts
Was this page helpful?