Turbopack error with next-auth middleware: _react.default.createContext is not a function
#66761
Labels
bug
Issue was opened via the bug report template.
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
locked
Middleware
Related to Next.js Middleware.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/tom-sherman/next-15-next-auth-middleware-error
Sandbox: https://codesandbox.io/p/github/tom-sherman/next-15-next-auth-middleware-error/csb-2kn7d6/draft/new-wood
To Reproduce
pnpm i
pnpm dev
Current vs. Expected behavior
Expected behavior
Should be able to load localhost:3000
Actual behaviour
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Thu Jan 11 04:09:03 UTC 2024 Available memory (MB): 7841 Available CPU cores: 16 Binaries: Node: 20.12.1 npm: 10.5.0 Yarn: 1.22.22 pnpm: 9.1.0 Relevant Packages: next: 15.0.0-canary.25 // Latest available version is detected (15.0.0-canary.25). eslint-config-next: N/A react: 19.0.0-rc-6f23540c7d-20240528 react-dom: 19.0.0-rc-6f23540c7d-20240528 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Middleware, Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Previously discussed in #66162
This is using next-auth v5.0.0-beta.19
The text was updated successfully, but these errors were encountered: