-
Notifications
You must be signed in to change notification settings - Fork 10
kurento-client-core: Cannot find module 'async' #624
Comments
Hello @joeflateau! 👋 we're sorry you found a bug... so first of all, thank you very much for reporting it. To know about progress, check in Triage. All issues are considered Backlog Candidates until work priorities align and the issue is selected for development. It will then become part of our official Backlog. |
which later is only used exactly here: https://github.com/Kurento/kurento-client-core-js/blob/7622ec2460c7c5c6c941d1c58ccd7d7ad8ef5543/lib/abstracts/MediaElement.js#L493-L497 which raises the point, can we safely remove the usage of |
|
I tried looking through |
I've been looking into it too, to reply here, here's the gist of it:
This I agree that this template is lacking some kind of list that can be used by each module to specify their dependencies. Such list would be used by the template to inject them into the I guess that's why the original developers decided it was much easier to just add the dependencies to the JavaScript client library, instead of the specific internal components such as kurento-client-core-js. |
Prerequisites
These are MANDATORY, otherwise the issue will be automatically closed.
Issue description
kurento-client
depends onkurento-client-core
which depends on the moduleasync
. However, since many modules may depend onasync
and very few others will depend onkurento-client-core
you will often find yourself in a situation whereasync
is installed in thekurent-client
directory rather than your app's node_modules andkurento-client-core
will not be able to import it properly.Context
How to reproduce?
Create a project and install both
portfinder
andkurento-client-core
which require different versions ofasync
. You will likely end up with a node_modules that looks like this:When
kurento-client-core
attempts torequire("async")
it will not be found.Expected & current behavior
(Optional) Possible solution
kurento-client-core
package.json should declare its dependency onasync
(orasync
should no longer be depended on)Info about your environment
About Kurento Media Server
About your Application Server
About end-user clients
Run these commands
The text was updated successfully, but these errors were encountered: