
에러) typeorm syntaxerror: cannot use import statement outside a module (import { Entity, ....} from 'typeorm'
2021. 4. 16. 20:35
에러
stackoverflow.com/questions/59435293/typeorm-entity-in-nestjs-cannot-use-import-statement-outside-a-module TypeORM Entity in NESTJS - Cannot use import statement outside a module Started new project with 'nest new' command. Works fine until I add entity file to it. Got following error: import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'; ^^^^^^ stackoverflow.com 해결방법 npm i tsconfig-..

에러) Class constructor MixinStrategy cannot be invoked without 'new' +461ms
2021. 4. 15. 00:55
에러
tsconfig.json 에러화면 해결 참고자료 github.com/nestjs/nest/issues/2190

에러) error import { } from 'typeorm'; or import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
2021. 4. 15. 00:37
에러
ormconfig.json 에러화면 해결 참조 github.com/typeorm/typeorm/issues/2155 Import Errors · Issue #2155 · typeorm/typeorm Issue type: [ ] question [x] bug report [ ] feature request [ ] documentation issue Database system/driver: [ ] cordova [ ] mongodb [ ] mssql [ ] mysql / mariadb [ ] oracle [x] postgres [ ] sqlite ... github.com

nest) 데이터 베이스 연결(데이터베이스 폼)
2021. 4. 14. 19:10
Backend 언어 및 프레임워크/Javascript- Node, express, Nest
DATABASE = " DB_USER = "root" DB_PASSWORD = "" DB_HOST = "" @nestjs/sequelize - nest전용 sequelize모듈 mysql2 - mysql 드라이버 sequelize - 프로미스 기반 Nodejs ORMsequelize-typescript - 선언적 정의를 위한 데코레이터 세트 제공 @types/sequelize - sequelize에 대한 typescript정의 TypeORM 설치 npm install --save @nestjs/typeorm typeorm pg 싱크 맞추기 typeorm schema:sync // ORM 과 DB 드라이버 $ npm install @nestjs/typeorm typeorm pg $ npm install t..