Can't import module to React #160
Unanswered
FeduniakVitalii
asked this question in
Support from community
Replies: 1 comment
-
Have you tried add field |
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
-
I'm using React with hundreds import, but this library get error - The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("tw-elements-react")' call instead.
To convert this file to an ECMAScript module, add the field
"type": "module"
to 'c:/Repositories/PSFRN/TMS-React/package.json'.ts(1479)Beta Was this translation helpful? Give feedback.
All reactions