Missing required @inject or @multiInject annotation in: argument 0 in class t. #1258
Comments
|
I have the same issue after the code has been minified by Angular (using internally TerserPlugin). All constructors are renamed to minified letters. |
I'm using this as a workaround in my project: container
.bind<PrismaClient>(TYPES.PrismaClient)
.toDynamicValue(() => new PrismaClient()); |
|
Thanks for your workaround. Unfortunately, the problem ist slightly different in my case, since the dependency I'm trying to bind on isn't an external library, but an injectable class that belongs to my project (which itself has other dependencies). |
|
@djflex68 EDIT: after research, it seems my issue was not related to inversify.js |
I have an issue resolving 3rd party class and the message I get is a bit cryptic.
So I decorate PrismaClient with injectable and bind to the container
In my ctor I inject it like that:
Expected Behavior
PrismaClient is resolved properly
Current Behavior
Could you help me with some hints maybe? What am I doing wrong?
The text was updated successfully, but these errors were encountered: