Typescript error TS1259: Module '"/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag #21998
Unanswered
andresgutgon
asked this question in
Help
Replies: 1 comment
-
i broke apart imports to get it to work like this:
for some reason can't get it as a one-liner |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I just started a NextJs project this weekend with this versions:
Node: 14.15.4
Next.js: 10.0.1
Typescript: 4.1.3
I'm getting this error:
When running this command:
I searched on Google
Searched on open issues and discussions on this repo
Also tried
"allowSyntheticDefaultImports": true
and"esModuleInterop": true
I would love some help. Thanks!
Ah this is my
tsconfig.json
Beta Was this translation helpful? Give feedback.
All reactions