Next.js Discord

Discord Forum

Next.js Vercel Deployment Error

Unanswered
Siamese Crocodile posted this in #help-forum
Open in Discord
Siamese CrocodileOP
Hello &752637460550385834, so just now I've just created a PR on my repo in github and it triggers deployment to vercel. The build is success and it deployed to the preview url. But then when I visit the url, it shows error code 500 | internal server error. I thought there was something wrong in my code, but then I go to other PR that previously has been deployed and got no issue, and then re-deploy it. When I visist the url, it shows the same error code 500. Is there any problem with vercel right now?

2 Replies

Siamese CrocodileOP
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './server.edge' is not defined by "exports" in /var/task/node_modules/.pnpm/next@13.4.4_@babel+core@7.20.7_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/package.json
    at new NodeError (node:internal/errors:405:5)
    at exportsNotFound (node:internal/modules/esm/resolve:364:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:700:9)
    at resolveExports (node:internal/modules/cjs/loader:567:36)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at /var/task/node_modules/.pnpm/next@13.4.4_@babel+core@7.20.7_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/server/require-hook.js:188:36
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at e.<computed>._module.Module._load (/var/task/___vc/__launcher/__launcher.js:14:1964)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED',
  page: '/'
}
RequestId: b3340251-d1e7-44f3-8c02-af09e7c19fbe Error: Runtime exited with error: exit status 1
Runtime.ExitError

this is what it looks like in the logs
Giant panda
Pinging mods for technical help is against our rules.