Next example is not working in Next 12.1.5
See original GitHub issueHi, when I try to use the NextJS documentation example, I get an error.
TypeError: Cannot read properties of null (reading 'client')
It’s happend in NextJS 12.1.5 version.
When lower version to 12.1.4 everything starts working correctly.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Broken context w/ next 12.1.5-rc.2 and above #36198 - GitHub
Describe the Bug ... An application I have is having a strange behavior after an upgrade from 12.1.0 to current. Bisecting the releases,...
Read more >Blog - Next.js 12.1
Next.js 12.1 introduces on-demand ISR, support for styled-components and Relay, zero-config Jest support, and more!
Read more >Next failed to load SWC binary - Stack Overflow
Today I got a real solution, using this example project command. When we create our new project, then swc will work as well...
Read more >Next.js - npm
The React Framework. Latest version: 13.1.1, last published: a day ago. Start using next in your project by running `npm i next`.
Read more >Next.js 12.1: Introducing On-Demand Incremental ... - YouTube
Next.js 12.1 introduces on-demand ISR, support for styled-components and Relay, zero-config Jest support, and more.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updating to NextJS’ 12.1.6 canary resolved the issue for me.
I see that the version has been updated also in the example.
Is this still an issue for anyone else? I tried upgrading
next
to12.1.6
,12.1.7-canary
and12.1.4
and@trpc/*
to9.23.4
but I’m still getting this error. I also triedrm -rf node_modules && rm -rf .next && yarn install
after each change onpackage.json
Edit: I forgot to wrap my
_app
with thewithTRPC
HOC but I was unlucky enough to be on12.1.5
on Next and getting the same error message 😂