Arsalan Hussain
Arsalan Hussain7mo ago

createTRPCReact transformers getting type error

No description
No description
7 Replies
Arsalan Hussain
Arsalan Hussain7mo ago
I am using same transformer on both front nand backend
No description
Arsalan Hussain
Arsalan Hussain7mo ago
superjson version 1.9.1 on both sides I tried latest but it ws giving esm errors that I could not sloved so backed to 1.9.1 which also used in creeate-t3-app ??
Nick
Nick7mo ago
It looks like typescript doesn’t understand the default import Tsconfig has a couple different flags you can enable to support default imports when they’re not set up in a particular way by the package Just do a autocomplete on default and import and try enabling those flags
Arsalan Hussain
Arsalan Hussain7mo ago
I have tried it but did not resolve the error
Nick
Nick7mo ago
What have you tried?
Arsalan Hussain
Arsalan Hussain7mo ago
the flag you are referring is I understand is allowSyntheticDefaultImports which is set to true
Nick
Nick7mo ago
There’s also esmoduleinterop which has solved similar issues for me Looks like you need to play with the way you’re importing though, there might be some other difference in your module system between frontend and backend