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
Hello .
I'm trying to inject typeorm repository to my service layer to use it but I got this error, I have searched google and used AI to solve but no solution workd. also I have found question in stack over flow but no answer was there
exportconstweatherRouter: Router=Router();constweatherController=container.resolve(WeatherController);/**@GET get all weathers */weatherRouter.get("/",weatherController.getAllWeathers);/**@GET get single weather*/weatherRouter.route("/:id").get((request: Request,response: Response)=>{response.status(200).json({statusCode: response.statusCode,message: "success",data: {title: "single weather object here",},});return;});
your support appreciated.
The text was updated successfully, but these errors were encountered:
Hello .
I'm trying to inject typeorm repository to my service layer to use it but I got this error, I have searched google and used AI to solve but no solution workd. also I have found question in stack over flow but no answer was there
question link:
https://stackoverflow.com/questions/78959606/problem-with-dependency-injection-with-tsyringe-typeorm-express
my container code :
my service code :
and my controller
and routes
your support appreciated.
The text was updated successfully, but these errors were encountered: