Attila Orosz

Results 127 comments of Attila Orosz

I'll be honest, this looks like a memory leak :). If you want to have a scoped context I suggest to use AsyncLocalStorage instead (https://nodejs.org/api/async_context.html#class-asynclocalstorage), which is a native module....

I have no experience with vite but the container instance is injected as the last parameter always, so it seems like your service is not recognized for some reason. Could...

Could you provide a basic reproduction code? Never heard of something like this before.

I’m using typedi in an nx monorepo without issues. Could you please create a simple reproduction repo on github so we can investigate?

It seems to me that the node_modules resolution is a bit interesting in your repo. Because you have a node_modules folder for each app, the Service decorator gets resolved from...

Could you create a repo with this? Its hard to see whats wrong without context.

It's weird because it works for me locally. Is there a chance your lib is in a monorepo?

The problem is the metadata storage of the DI, technically it's tied to your node_modules folder. If your app happens to be in a monorepo that has separate node_module instances...

> What is funny, is that when I remove type from Inject() statement, it says: That is expected, if you never reference the class that registers the token it won't...

Do you use `@Inject` or constructor injection?