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
[ ] Regression
[ ] Bug report
[ / ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
If I omit an exported component from the components collection of a module but include it in the exports collection, I get a cryptic error when importing it into a component into a separate module.
Nest can't resolve dependencies of the OtherController (?). Please verify whether [0] argument
is available in the current context.
Expected behavior
The error on boot should say something along the lines of "you have included a Component in the 'exports' collection but did not register it in the 'components' collection. This will cause DI to break. Please list all exported components in the 'components' AND 'exports' collection`
Minimal reproduction of the problem with instructions
I'm submitting a...
Current behavior
If I omit an exported
component
from thecomponents
collection of a module but include it in theexports
collection, I get a cryptic error when importing it into a component into a separate module.Expected behavior
The error on boot should say something along the lines of "you have included a Component in the 'exports' collection but did not register it in the 'components' collection. This will cause DI to break. Please list all exported components in the 'components' AND 'exports' collection`
Minimal reproduction of the problem with instructions
https://github.com/mcMickJuice/typescript-starter
What is the motivation / use case for changing the behavior?
Better error messaging and less time wasted around incorrect component registration
Environment
The text was updated successfully, but these errors were encountered: