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
Can someone help me to solve a problem. Im using typescript-ioc in 2 modules and module B dependes on module A. The problem is, somehow the Container instance used in each library seems to be different (which makes sense).
My question is, there anyway to share Container instance between two libraries?
Thanks in advance
Edit: I already solved by exporting the instance of Container from A to B, but it seems that i should have not do this.
The text was updated successfully, but these errors were encountered:
You must use the same typescript-ioc instance across libraries. In module A don't install typescript-ioc directly but via peer-dependencies and let module B instasll typescript-ioc. This way the same "instance" of Container is used.
Hi,
Can someone help me to solve a problem. Im using typescript-ioc in 2 modules and module B dependes on module A. The problem is, somehow the Container instance used in each library seems to be different (which makes sense).
My question is, there anyway to share Container instance between two libraries?
Thanks in advance
Edit: I already solved by exporting the instance of Container from A to B, but it seems that i should have not do this.
The text was updated successfully, but these errors were encountered: