Skip to content

Exported modules returns undefined when used react's syntax #11132

Answered by aezakmi
aezakmi asked this question in Help
Discussion options

You must be logged in to vote

I resolved the problem by changing tsconfig.json parameter target to es2020 and module to esnext, so for some reason it works fine now.
I had the problem above because I need to parse ts to es5 because I start the server by regular node command ./server/index.js (no imports will be understand).
So now I have 2 tsconfig.json files with server and client configurations

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aezakmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant