Skip to content

Run dev with error - Cannot read properties of undefined (reading 'exec') #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
felipelssilva opened this issue Mar 17, 2025 · 2 comments

Comments

@felipelssilva
Copy link

Using the "required" version (v16.18.0), based on the .nvmrc file. The project doesn't run because there are a restriction by the Next.js and that is required the version that I've using bellow

So, I'm using the minimum version of node to run the Next 14:

node -v
v18.17.0
npm -v
9.6.7

Follow the trace of the errors:

❯ pnpm run dev

> saas-starter@0.3.1 dev C:\projects\projects-sass
> next dev

  ▲ Next.js 14.2.5
  - Local:        http://localhost:3000
  - Environments: .env

 ✓ Starting...
Warning: Contentlayer might not work as expected on Windows
Contentlayer config change detected. Updating type definitions and data...
Generated 20 documents in .contentlayer
 ✓ Ready in 4.9s
 ○ Compiling /middleware ...
 ✓ Compiled /middleware in 1566ms (297 modules)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ○ Compiling /_not-found ...
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ✓ Compiled /_not-found in 14.3s (992 modules)
 GET / 404 in 8ms
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 GET /_next/static/webpack/8f2618d39fd27431.webpack.hot-update.json 404 in 14972ms
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 GET / 404 in 1ms
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
 ⨯ Error [TypeError]: Cannot read properties of undefined (reading 'exec')
    at <unknown> (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js:7:6738)
    at Object.(middleware)/./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/runtime/library.js (file://C:\projects\projects-sass\.next\server\middleware.js:1183:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js:5:88)
    at Module.(middleware)/./node_modules/.pnpm/@auth+prisma-adapter@2.8.0__4377959811fba7daba42fa709b31aa99/node_modules/@auth/prisma-adapter/index.js (file://C:\projects\projects-sass\.next\server\middleware.js:634:1)
    at __webpack_require__ (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:37:33)
    at fn (file://C:\projects\projects-sass\.next\server\edge-runtime-webpack.js:285:21)
    at eval (webpack-internal:///(middleware)/./auth.ts:8:78)
    at Module.(middleware)/./auth.ts (file://C:\projects\projects-sass\.next\server\middleware.js:150:1)
@kauan777
Copy link

same here

@SnowingFox
Copy link

The @auth/prisma-adapter version ^2.8.0 is not compatible with next-auth version ^5.0.0-beta.25. To resolve this issue, revert to @auth/prisma-adapter version 2.7.2 and install it without the ^ symbol to prevent unintended updates.

nextauthjs/next-auth#12731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants