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
Can't build project - TypeError: Cannot read properties of null (reading 'useContext') #65413
Comments
Have you tried removing the toaster from the layout? |
Yes, I also try to remove all pages, and create one with only |
I have the same error, in next 14.1.0 all works but when I upgrade next version to 14.2.3 start the error (Only in vercel and npm run build) |
I tried to downgrade to |
I had a similar error. I fixed it by recreating |
I don't know why now it worked whereas I already tried this. |
Link to the code that reproduces this issue
https://github.com/Zweird-958/my-wishlist
To Reproduce
cd apps/web
bun run build
Current vs. Expected behavior
Should build successfully
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 20.9.0 npm: 10.1.0 Yarn: 1.22.21 pnpm: 9.0.6 Relevant Packages: next: 14.2.3 // Latest available version is detected (14.2.3). eslint-config-next: 14.2.3 react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.5 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next build (local), Vercel (Deployed)
Additional context
I have no error with a
next dev
butnext build
don't work.I'm using
bun
and also it's a monorepo.I tried to delete all my pages and get only one
page.tsx
but I have the same error.Error:
The text was updated successfully, but these errors were encountered: