New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep getting "Cannot resolve all parameters for..." error #16
Comments
You need the flag |
Yep, now it works. |
@galtalmor would you open a PR? |
Sure. Will do. |
Facing same problem with this tsconfig.json:
Im ussing resolveAndCreate:
HttpService:
StorageService:
Error: Cannot resolve all parameters for 'HttpService'(?). Make sure that all the parameters are decorated with Inject or have valid type annotations and that 'HttpService' is decorated with Injectable. |
Sorry, related to: #36 babel config. |
I'm trying to use this in a node project written in TypeScript (tried running it with ts-node and with the code compiled to JS).
I've got to the point where I just copied the very basic example from the readme, and still get the same result.
I made sure 'reflect-metadata' and 'injection-js' both installed and on latest version.
What am I missing?
This is the code:
And this is the exception:
The text was updated successfully, but these errors were encountered: