๐ To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
package.json
{
"name": "node",
"type": "module", // ๅขๅ ๆญค่ก
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
}
1
2
3
4
5
6
7
2
3
4
5
6
7