node:42932) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.

 This error message is basically saying that in order for us to start using import feature of ESM then we need to specify the following.

As specified in the warning setting "type": "module" in the package.json solves the problem.






No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days