I am facing the following error when importing the library from an ES module:
In addition, VSCode fails to navigate to the js sources when CTRL+clicking the library name.
Both import and navigation errors can be fixed by adding the main property in package.json as of line 10 in the following:
I am facing the following error when importing the library from an ES module:
In addition, VSCode fails to navigate to the js sources when CTRL+clicking the library name. Both import and navigation errors can be fixed by adding the
main
property inpackage.json
as of line 10 in the following: