elizavetalysenko / web-lr456

0 stars 0 forks source link

Q3 #3

Open bordi opened 1 year ago

bordi commented 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?

elizavetalysenko commented 1 year ago

the application uses es6 imports, so this extension. In order for this to work, you need to specify "type": "module" in package.json