question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Next example is not working in Next 12.1.5

See original GitHub issue

Hi, 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
p6l-richardcommented, Apr 30, 2022

Updating to NextJS’ 12.1.6 canary resolved the issue for me.

I see that the version has been updated also in the example.

2reactions
bratsoscommented, May 25, 2022

Is this still an issue for anyone else? I tried upgrading next to 12.1.6, 12.1.7-canary and 12.1.4 and @trpc/* to 9.23.4 but I’m still getting this error. I also tried rm -rf node_modules && rm -rf .next && yarn install after each change on package.json

Edit: I forgot to wrap my _app with the withTRPC HOC but I was unlucky enough to be on 12.1.5 on Next and getting the same error message 😂

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found