7 Replies
I am using same transformer on both front nand backend
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
??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
I have tried it but did not resolve the error
What have you tried?
the flag you are referring is I understand is
allowSyntheticDefaultImports
which is set to trueThere’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