Open hlibco opened 6 years ago
Hi @remojansen I saw you closed the issue #703 (similar to the one I just opened) by suggesting to upgrade to restify@6.3.4
. It didn't work to be (but 6.3.2 did). However, upgrading to restify@7.1.1
(latest - at the time of this post), the error persists.
Any idea of how inversify-restify-utils
users should proceed?
The inversify-restify-utils
on github has its dependencies being updated by greenkeeper
. That's great. It would be even better if the up-to-date version on github could be published to NPM. It would fix the #847
I manually changed the version of restify
which inversify-resity-utils
dependends on (from 6.3.2 to 7.1.1) and it fixed the issue.
I'm also blocked upgrading to the most recent versions of Inversify and Restify by this. Could a new version be published to npm? That would be incredibly helpful.
I resolved this problem in current version
From restify version 6 I have same problem, when I do not install the restify-errors module.
@hlibco inversify-restify-utils
has been updated, the new v3.4
should be compatible with the most recent version of inversity and restify v7
Similar to the closed issue #703 (but with a newer version of restify)
Expected Behavior
It should start the
restify
server without problems.Current Behavior
As soon as
restify
is imported an error is thrown:[ERR_ASSERTION]: Constructor already exists!
Possible Solution
To use
inversify-restify-utils@3.3.1
I had to downgrade Restify torestify@6.3.2
Steps to Reproduce (for bugs)
Clone the following repo: https://github.com/hlibco/restify-inversify-constructor-error
yarn install
ornpm install
yarn start
ornpm start
Your Environment
Stack trace