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
Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Currently there is no information on the the breaking change about injection token generation which changed in version 8.
Every few days there is a question related to this topic in the NestJS Discord why this and that no longer works:
The error is Error: Nest can't resolve dependencies of the .....
It comes down to people not knowing about the change that injection tokens are no longer the class names.
Expected behavior
Update the v8 migration guide to include a note about this change and an explanation why the old way worked and the new doesn't.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Better informed developers
Environment
For Tooling issues:
Node version: XX
Platform:
Others:
I know it was not ment for "consumers" to know about this and they should have used the @Inject decorator but juding by the amount of questions related to this it might not be common knowledge.
The text was updated successfully, but these errors were encountered:
You could add a warning, but I'm not sure if this is the best idea. 🤔
Because in the documentation if I'm not mistaken the use of string class names as injection tokens was never really documented.
I'm submitting a...
Current behavior
Currently there is no information on the the breaking change about injection token generation which changed in version 8.
Every few days there is a question related to this topic in the NestJS Discord why this and that no longer works:
Example:
My code no longer works:
It comes down to people not knowing about the change that injection tokens are no longer the class names.
Expected behavior
Update the v8 migration guide to include a note about this change and an explanation why the old way worked and the new doesn't.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Better informed developers
Environment
For Tooling issues:
Others:
I know it was not ment for "consumers" to know about this and they should have used the
@Inject
decorator but juding by the amount of questions related to this it might not be common knowledge.The text was updated successfully, but these errors were encountered: