-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not error if requiredVersion is not provided. #9321
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
Is the shared package (the one specified in Looks like this isn't an issue when the extension is built into jupyterlab (installed from npm), as the jupyterlab/dev_mode/webpack.config.js Lines 170 to 178 in eb2aa84
|
I triggered it by installing an extension (not federated) that had a jupyterlab/dev_mode/webpack.config.js Line 205 in eb2aa84
|
If a package overrides the sharing config for a dependency, it might have forgotton to give the requiredVersion (so requiredVersion is undefined). In this case, don't error, but instead just go with the default webpack behavior.
Rebased on master to hopefully fix the tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
References
Code changes
If a package overrides the sharing config for a dependency, it might have forgotton to give the requiredVersion (so requiredVersion is undefined). In this case, don't error (which is what currently is done with an undefined error), but instead just go with the default webpack behavior.
I found this by playing around with the
sharedPackages
key, and forgetting to addrequiredVersion
...User-facing changes
Backwards-incompatible changes