You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
kurento-client depends on kurento-client-core which depends on the module async. However, since many modules may depend on async and very few others will depend on kurento-client-core you will often find yourself in a situation where async is installed in the kurent-client directory rather than your app's node_modules and kurento-client-core will not be able to import it properly.
Create a project and install both portfinder and kurento-client-core which require different versions of async. You will likely end up with a node_modules that looks like this:
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.
async is one example but the real issue is that kurento-client-core doesn’t declare its dependencies and just expects to be able to use the dependencies of kurento-client. So I expect if the async module dependency is removed then another dependency will have the same issue.
I tried looking through kurento-client-js and kms-core to see how the kurento-client-core package.json is generated to see about sending a PR to make sure the dependencies are preserved in the kurento-client-core but I wasn't able to decipher how that's actually generated.
This model_package_json.ftl is the template used for allpackage.json files of all modules; both the ones part of Kurento, and any extra module that might be created by an user.
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 dependencies array in the resulting package.json... but having a look at it, seems nothing to that effect is present.
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.
Activity
github-actions commentedon May 4, 2022
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.
j1elo commentedon May 5, 2022
kurento-client-core-jsusesasyncin just one spot, here: https://github.com/Kurento/kurento-client-core-js/blob/7622ec2460c7c5c6c941d1c58ccd7d7ad8ef5543/lib/abstracts/MediaElement.js#L32which 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
asyncandeachin this module? (open question, I'm really not sure)joeflateau commentedon May 5, 2022
asyncis one example but the real issue is thatkurento-client-coredoesn’t declare its dependencies and just expects to be able to use the dependencies ofkurento-client. So I expect if theasyncmodule dependency is removed then another dependency will have the same issue.joeflateau commentedon May 5, 2022
I tried looking through
kurento-client-jsandkms-coreto see how thekurento-client-corepackage.json is generated to see about sending a PR to make sure the dependencies are preserved in thekurento-client-corebut I wasn't able to decipher how that's actually generated.j1elo commentedon May 5, 2022
I've been looking into it too, to reply here, here's the gist of it:
All Kurento client code is auto-generated by kurento-module-creator (Writing Kurento Modules)
kurento-module-creator uses FreeMarker template files (
*.ftl), and specifically:kurento-client-core-js/lib/abstracts/MediaElement.js
is generated from kurento-client-js/templates/remoteClass_class.ftl.
kurento-client-js/package.json
is generated from kurento-module-creator/src/main/templates/npm/model_package_json.ftl.
This
model_package_json.ftlis the template used for allpackage.jsonfiles of all modules; both the ones part of Kurento, and any extra module that might be created by an user.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
dependenciesarray in the resultingpackage.json... but having a look at it, seems nothing to that effect is present.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.