Open bordi opened 1 year ago
https://github.com/elizavetalysenko/web-lr456/blob/3f97339bafdc731bf9f5f5975c7dd0d4a31b0f67/server/index.mjs#L1
I see that extension of this file is mjs. Why? And what is needed to node.js treat this file ext?
mjs
the application uses es6 imports, so this extension. In order for this to work, you need to specify "type": "module" in package.json
https://github.com/elizavetalysenko/web-lr456/blob/3f97339bafdc731bf9f5f5975c7dd0d4a31b0f67/server/index.mjs#L1
I see that extension of this file is
mjs
. Why? And what is needed to node.js treat this file ext?