Angush
Following documentation gives error: "You cannot dot into a client module from a server component."
Running: Node
21.6.2
, tRPC 11.0.0-rc.553
(client, server, next, react-query), next 14.2.14
, and react-query 5.59.0
So, I'm trying to follow the React-Query Server Components setup guide in the tRPC docs, and I've mostly just copy pasted the code out, yet my client component isn't working.
This works:
But when I change it to a client component, like the code in the documentation on tRPC's website:
It spits out this error:
When using next dev --turbo
rather than next dev
, the error message is different, though pointing to the same line:
Correct me if I'm wrong, but... that's no longer a server component, right?6 replies