Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

tRPC stopped working after moving my code from my project root into a src directory #2534

Closed
Je12emy opened this issue Aug 25, 2022 · 0 comments

Comments

@Je12emy
Copy link

Je12emy commented Aug 25, 2022

I'm learning tRPC with Next (thanks Theo), I just had it setup and working with my project, but I disliked the default file structure provided by Next and I read it is possible to move my code in a dedicated src directory. After moving everything over and changing the import paths, I noticed tRPC stopped working with the following error: TypeError: Cannot read properties of null (reading 'client')

Here's a repository to replicate my issue: https://github.com/Je12emy/twitter-nextjs/tree/trpc_port

After looking at #1789 I created a new issue due to me using Next 12.2.5

@trpc trpc locked and limited conversation to collaborators Aug 26, 2022
@KATT KATT converted this issue into discussion #2549 Aug 26, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant