By default, ES modules don't work. They
need to be enabled. To do this, in a
package.json
file specify the
"type"
setting with the
"module"
value:
{
"type" : "module"
}
In your working folder create
package.json
and enable
ES modules in it.