Я пытаюсь запустить приложение nest js с помощью typeorm.
При запуске на ts-node
Unable to connect to the database. Retrying (1)... +3020ms
/Users/kimminchan/projects/nest-test/src/entities/user.entity.ts:1
(function (exports, require, module, __filename, __dirname) { import {
^
SyntaxError: Unexpected token {
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
у меня появляется моя ormconfig . js
{
"type": "mysql",
"host": "localhost",
"port": 3306,
"username": "root",
"password": "1234",
"database": "nest_test",
"entities": ["dist/entities/*.entity{.ts,.js}", "src/entities/*.entity{.ts,.js}"],
"synchronize": true
}