L
L
LLcosplay2022-04-12 12:50:56
Angular
LLcosplay, 2022-04-12 12:50:56

diContainer TS2345 error?

I'm trying to run a test project on the server.
Gives an error message

~/www/ork-wiki-admin-back-test $ npm run test-start

> [email protected] test-start /var/www/ork-wiki-admin-back-test
> tsc && yarn copy-files && NODE_ENV=testing forever start --id='ork_wiki_admin_back_test' dist/index.js

src/index.ts:22:43 - error TS2345: Argument of type 'import("/var/www/ork-wiki-admin-back- test/node_modules/inversify/dts/container/container").Container' is not assignable to parameter of type 'import("/var/www/ork-wiki-admin-back-test/node_modules/inversify-express-utils/ node_modules/inversify/lib/interfaces/interfaces").interfaces.Container'.
Type 'Container' is missing the following properties from type 'Container': rebindAsync, unbindAsync, unbindAllAsync, isCurrentBound, and 9 more.

22 const server = new InversifyExpressServer(diContainer);
~~~~~~~~~~~

Found 1 error in src/index.ts:22

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] test-start: `tsc && yarn copy-files && NODE_ENV=testing forever start --id='ork_wiki_admin_back_test' dist/index.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] test-start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:


I've been fighting for the second day and I can not understand what's wrong.
How can this problem be solved ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question