Closed vendramini closed 1 year ago
While I was creating the reproduceable repo I was able to compile it. I don't know why, I have no clue. I just created a new nx workspace, added a Expo project, added a NextJS project, added tRPC, and I was slowly adding all modules and components my previous project have. For each change I made, I compiled (with tRPC) to check if it was working. Now I have my full project compiling.
I'll close this issue but my original project still not compiling.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
I have a nx repo with 4 projects within:
I would like to use tRPC (trpc.io) with NextJS to handle my api.
If I create an isolated NextJS project and add tRPC to it, everything works as expected. If I try to add tRPC on my nx repository, the NextJS compilation fails with this:
Indeed, in tRPC's github page, there is an issue about it: https://github.com/trpc/trpc/issues/4316 however, it's related to NextJS 13.4.0 - and it has already been solved.
It's been really hard to figure out what is happening, because I have no clue. I ended up here: https://react.dev/warnings/invalid-hook-call-warning I do have only one version of react running, and my
yarn why react
is:Expected Behavior
Compile NextJS with tRPC normally.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Operating System
Additional Information
I will create a reproduce-able repo tomorrow and update here with the link.
BTW: it's not possible to update nx. Both
yarn nx migrate
andnx migrate
gives errors (I'll investigate this one later):