1 year ago
#368385
Quipe809
Typeorm is not generating entities on build when using NX
I'm using nx for a project and Have a NestJS API with Typeorm but when running nx serve app the entities files are not being generated so I get this error when trying to insert data to the database.
No metadata for \"Agent\" was found.",
when I manually point the .ts entities files to the Entities:[] config so I get this error.
import { Field, ObjectType } from '@nestjs/graphql'; ^^^^^^
SyntaxError: Cannot use import statement outside a module
nestjs
typeorm
monorepo
0 Answers
Your Answer