ES6 quick way to activate

10 hours ago 1
ARTICLE AD BOX

open the package.json file created by npm init -y and add "type" field. Fix ES6 model error is to add "type": "module" to your package.json file.

{ "name": "your-project-name", "version": "1.0.0", "description": "", "main": "index.js", "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" }
Read Entire Article