InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

Results 173 InversifyJS issues
Sort by recently updated
recently updated
newest added

When using InversifyJS with Jest, creating a container with mock dependencies results in the error: TypeError: Cannot read property 'constructor' of null. ## Expected Behavior A container should be able...

any way to use inversify with create-react-app without ejecting? especially @inject in parameters

## Expected Behavior To run yarn watch and have no error ## Current Behavior `node_modules/inversify/lib/annotation/injectable.d.ts:1:52 - error TS1005: ',' expected. 1 declare function injectable(): unknown>(target: T) => T; ~~~ node_modules/inversify/lib/annotation/injectable.d.ts:1:83...

I'd like a way to use a function to create a singleton. From what I understand from the documentation factories and providers return an instance, but said instance itself is...

When I try to call the autofactory it says the service doesn't exist, if I don't use an autofactory it says the same thing but on parent service creation. also...

Reposting issue from invserify-express-utils here. https://github.com/inversify/inversify-express-utils/issues/378 ## Expected Behavior When using the BaseHttpController helper method BaseHttpController.json(...) the resulting express call coerces the json object to a string. This causes problems...

Would you mind providing an example using Request scope? Documentation is not very clear: > The inRequestScope creates a singleton that will last for the entire life cycle of one...

## Expected Behavior Unit tests should be able to inject dependencies ## Current Behavior I'm getting this error when running the tests... C:\xxx\src\app\services\auth\JWTAuthentication.service.ts:31 constructor(@(0, _inversify.inject)(_ICookieStorage.ICookieStorageService$) ^ SyntaxError: Invalid or unexpected...

Hi, not really a bug report, just to see if you are aware since this is not obvious in the docs. As title states. In fact I cannot get this...

Hey, I'm experiencing issues with inversify-express-utils library, when application is running with HMR enabled and you make changes to controllers the application crashes because of duplicate Reflect metadata. ## Expected...