I have a server, the code of the file index.js is shown below. I want to post it on https://dashboard.heroku.com/. But it does not start the command node inde.js.
The ES6 import is not yet fully supported by Node. It is still experimental. To use them, you need to change your files extension from .js to .mjs and start them with this flag :
node --experimental-modules my-app.mjs
More details there : https://nodejs.org/api/esm.html