user@LAPTOP-3A1RJ558 MINGW64 /d/test_folder $ node main.js (node:20824) Warning: To load an ES module, set"type": "module"in the package.json or use the .mjs extension. (Use `node --trace-warnings ...` to show where the warning was created) D:\test_folder\main.js:10 import { add } from './utils.js' ^^^^^^
SyntaxError: Cannot use import statement outside a module at wrapSafe (internal/modules/cjs/loader.js:984:16) at Module._compile (internal/modules/cjs/loader.js:1032:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:933:32) at Function.Module._load (internal/modules/cjs/loader.js:774:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:1 2) at internal/main/run_main_module.js:17:47