Closed omridevk closed 1 year ago
The solution is to add .js/.mjs extension to all the files. ideally should be both to support all env.
We've fixed this in 2.1.3 experimental release. If you have further questions specific to the React package, please make an issue over there!
Description
Description In TypeScript 4.7, along the property "module": "node16" that enables ESM features in TypeScript, there are new values for the property "moduleResolution": "node16" and "nodenext".
Problem Statement/Justification
The problem is that when using the icons in env with typescript configured to use "moduleResolution": "node16" will not work. see screen shot:
Expected behavior Import should work without throwing errors.
Workaround: either use "moduleResolution": "bundler" or use skipLibCheck: "true"
Both are not a good options in my opinion.
Thanks for the great library.