EXP1001: Dependency is not bound
Raised as an error, in every environment.
A class asked the container for a dependency that nothing provides, so the application cannot start.
No matching bindings found for serviceIdentifier: Mailer
Requested by: MailController (constructor argument 0)
Fix: add @provide(Mailer) to the Mailer class, or bind it in a module. If it already has @provide, make sure its file is imported before the application starts.
Code: EXP1001
Requested by names the class and the constructor argument that asked. When the request came through other classes, a Dependency chain line shows the path.
Fix
- Put
@provide(Mailer)on the class, or bind it in a module. - If the class already has
@provide, its file is never imported, so the decorator never runs. Import it from a file the application loads at start.
expressots check finds this without starting the server. See check.
All codes are listed under Error responses.