1
resposta

[Dúvida] Erro na migracao

eu recebi esse erro quando tentei dar um check pra ver se tinha funcionado, mas deu esse erro ai, ja faz um bom tempo que tento resolver e nada, e ninguem nao me responde no forum

PS C:\Users\Asus\loja> typeorm-ts-node-esm -d src/db/data-source-cli.ts migration:show

Error during migration show: Error: Unable to open file: "C:\Users\Asus\loja\src\db\data-source-cli.ts". Cannot use import statement outside a module at CommandUtils.loadDataSource (C:\Users\Asus\AppData\Roaming\npm\node_modules\typeorm\commands\CommandUtils.js:22:19) at async Object.handler (C:\Users\Asus\AppData\Roaming\npm\node_modules\typeorm\commands\MigrationShowCommand.js:27:26)

1 resposta

respondido! https://cursos.alura.com.br/forum/topico-erro-na-migracao-344716