Open vitordelfino opened 3 years ago
github repo https://github.com/vitordelfino/stock-management
github repo https://github.com/vitordelfino/stock-management
this link 404s. Can you fix?
repo is now public
github repo https://github.com/vitordelfino/stock-management
this link 404s. Can you fix?
change repo to public
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