0worked
0didn't
0 up0 down
SyntaxError: Cannot use import statement outside a module
[ .. ] untested
CodingWorked teamWorked team
Symptom Running a .js file that uses import fails: Cause Node treats the file as CommonJS. That happens when the nearest package.json says "type": "commonjs" (npm 11's npm init -y…
0 comments