Skip to content
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

Next example is not working in Next 12.1.5 #1789

Closed
Dimirolz opened this issue Apr 14, 2022 · 8 comments · Fixed by #1864
Closed

Next example is not working in Next 12.1.5 #1789

Dimirolz opened this issue Apr 14, 2022 · 8 comments · Fixed by #1864
Labels

Comments

@Dimirolz
Copy link

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.

@sachinraja
Copy link
Member

See vercel/next.js#36115, this is an issue with next.

@Dimirolz
Copy link
Author

Thanks for fast feedback!
You can close this issue.

@sachinraja
Copy link
Member

I think we should keep this open until it's fixed in Next so people can see we are aware of it

@KATT
Copy link
Member

KATT commented Apr 16, 2022

I also locked the version in the examples (#1781), but yeah, could keep it open.

@KATT KATT added the blocked label Apr 19, 2022
@p6l-richard
Copy link
Contributor

p6l-richard commented 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.

@bratsos
Copy link

bratsos commented May 18, 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 😂

@Je12emy
Copy link

Je12emy commented Aug 25, 2022

I'm also facing this issue after moving my code from the root directory on a newly created next app into a src directory, before this move tRPC was working fine, but now I receive this same error, here's a repository to replicate my issue: https://github.com/Je12emy/twitter-nextjs/tree/trpc_port

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

This issue has been locked because it had no new activity for 14 days. If you are running into a similar issue, please create a new issue. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants