Is it possible through npm?
import path from "path"; //error var router = path.parse('new','cicik'); console.log(router.name); Is it possible through npm?
import path from "path"; //error var router = path.parse('new','cicik'); console.log(router.name); Node.js c 9th version supports ES6 modules in experimental mode . To do this, run node with the --experimental-modules flag and the script must have the mjs extension. For example, node - experimentally-modules test.mjs
Source: https://ru.stackoverflow.com/questions/886013/
All Articles