You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i start my application in develop mode, all works fine, but when transpile files.
I use ts-node-dev to start app.
But when i transpile files with babel and start application, i get the error: UnhandledPromiseRejectionWarning: ParamTypeMissingError: Cannot get reflected type for a "repository" method's [object Object]1. parameter of OrderService class. Make sure you have turned on an "emitDecoratorMetadata": true, option in tsconfig.json. and that you have imported "reflect-metadata" on top of the main entry file in your application.And make sure that you have annotated the property type correctly with: Repository, MongoRepository, TreeRepository or custom repository class type.
emitDecoratorMetadata is true;
reflect-metadata is imported;
When i start my application in develop mode, all works fine, but when transpile files.
I use ts-node-dev to start app.
But when i transpile files with babel and start application, i get the error:
UnhandledPromiseRejectionWarning: ParamTypeMissingError: Cannot get reflected type for a "repository" method's [object Object]1. parameter of OrderService class. Make sure you have turned on an "emitDecoratorMetadata": true, option in tsconfig.json. and that you have imported "reflect-metadata" on top of the main entry file in your application.And make sure that you have annotated the property type correctly with: Repository, MongoRepository, TreeRepository or custom repository class type.
emitDecoratorMetadata is true;
reflect-metadata is imported;
File that start application
server.ts
OrderServive.ts
OrderRepository.ts
The text was updated successfully, but these errors were encountered: