node-decorators: Error injection
Hi, first of all thanks for this amazing work but i have a problem with dependence injection library: I created a controller that accept a TherapiesService instance in the constructor and marked as Injectable the TherapiesService class. When i try to start the app, i get the Missing ERRORMIDDLEWARE: Here start the fun, i insert the Container.provide before attatch all controllers as you write on your example and now when trying to send a GET request, it will reject because the method GET is not define (Same for all http methods). I will provide the code on gist (The code is in a private repo)
"dependencies": {
"@decorators/di": "^2.0.0",
"@decorators/express": "^2.9.3",
"@decorators/express-openapi": "^1.1.2",
"@decorators/socket": "^3.4.1"
}
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (9 by maintainers)
That’s the default parameter if you want to use decorators.