Pessoal, tive este erro ao rodar o código no meu PC:
Error:
(node:26844) 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)
Error:
c:\Users\veber\Documents\Cursos\Alura\Front-End\TypeScript\TypeScript pt 1 - evoluindo seu JavaScript\dist\js\node_80c1f684818f8.tmp:1
import { Negociacao } from "./models/negociacao";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1032:15)
at Module._compile (node:internal/modules/cjs/loader:1067:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
Alguém já teve algo e igual e sabe como corrigir? Já tentei rodar usando o Node Exec e também pelo terminal, mas não está dando certo.