I would expect that InversifyJS provides us with the "dependencies path" which leads it to detect the circular dependency.
For instance, if I inject B into A, then C into B and finally A into C, I would expect the following message:
"Error: Circular Dependency Found: A -> B -> C -> A"
Currently, I am experiencing this message : "Error: Circular Dependency Found Between class A and A".
I am working on a really big app involving injection in a lot of services. This results in having a high dependency tree and thus, in taking a long time to identify the issue.
Hi @anthonyjlmorel I'm not 100% sure about being able to do that mostly because some browsers throws the stack overflow exception (caused by circular dependencies) in different points during the execution. But this is a nice suggestion so I will try to implement it.
Hi @anthonyjlmorel this has now been implemented by #353 I will try to release it tonight I'm closing this issue
Most helpful comment
Hi @anthonyjlmorel I'm not 100% sure about being able to do that mostly because some browsers throws the stack overflow exception (caused by circular dependencies) in different points during the execution. But this is a nice suggestion so I will try to implement it.