-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
RuntimeRelated to Node.js or Edge Runtime with Next.js.Related to Node.js or Edge Runtime with Next.js.TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.bugIssue was opened via the bug report template.Issue was opened via the bug report template.locked
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:43 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8112
Binaries:
Node: 19.7.0
npm: 9.5.0
Yarn: 3.5.0
pnpm: N/A
Relevant packages:
next: 13.3.0
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0Which area(s) of Next.js are affected? (leave empty if unsure)
Middleware / Edge (API routes, runtime)
Link to the code that reproduces this issue
https://github.com/TrevorThomp/nextjs-auth-repro
To Reproduce
# Make sure you are on latest Yarn version (>2.0.0).
yarn set version stable
# Install dependencies specified in package.json
yarn install
# Build the application
yarn build
# Build Docker container
yarn docker:buildDescribe the Bug
When building the Next application through next build the following output occurs and will fail my builds in GCP:
I raised this issue with Nextjs-Auth0 and they directed me back to here
auth0/nextjs-auth0#1152
The changes that started throwing this error was in the 13.3.0 release:
#47715
d71cbe9#diff-88cc5222d0ce7e563716eee434a1045d101b0043afd2450d66c9eb1ca4ac5cbb
Expected Behavior
Middleware with auth works as expected.
Which browser are you using? (if relevant)
N/A
How are you deploying your application? (if relevant)
N/A
kingb, jlurgo, szurcher8, etoccalino, charles-gyer and 18 morekingb, szurcher8, cotsao, Charlie-Boyer, viktorvoltaire and 5 more
Metadata
Metadata
Assignees
Labels
RuntimeRelated to Node.js or Edge Runtime with Next.js.Related to Node.js or Edge Runtime with Next.js.TurbopackRelated to Turbopack with Next.js.Related to Turbopack with Next.js.bugIssue was opened via the bug report template.Issue was opened via the bug report template.locked