Skip to content

Error: You're trying to use @trpc/server in a non-server environment. This is not supported by default. #3750

Answered by sbkl
sbkl asked this question in Q&A
Discussion options

You must be logged in to vote

The issue was with the transformer variable with superjson being exported use to init tRPC. Importing and using directly superjson solved the issue.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ben-xD
Comment options

Answer selected by sbkl
Comment options

You must be logged in to vote
1 reply
@KATT
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants