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
import'@abraham/reflection';import{container,singleton}from'tsyringe';
@singleton()exportclassFoo{constructor(){}}
@singleton()exportclassBar{constructor(publicfoo: Foo){}}console.log(container.resolve(Foo));// Worksconsole.log(container.resolve(Bar));// Throws Uncaught Error: TypeInfo not known for "Bar"
Describe the bug
When trying to resolve a token with one or more dependencies, the error
TypeInfo not known for "Bar"
is thrown.To Reproduce
Reproduced on StackBlitz
Sample code:
Tested with:
Expected behavior
The token
Bar
should have been successfully resolved with itsFoo
dependency set.Versions
References
The text was updated successfully, but these errors were encountered: