I was trying to build jupyterlab (v3.3.4, Windows 10), but it failed. The log file gives the following error:
$ webpack --config webpack.prod.minimize.config.js
[webpack-cli] Failed to load 'C:\...\share\jupyter\lab\staging\webpack.prod.minimize.config.js' config
[webpack-cli] Invalid options object. Module Federation Plugin has been initialized using an options object that does not match the API schema.
- options.shared should be one of these:
[non-empty string | object { <key>: object { eager?, import?, packageName?, requiredVersion?, shareKey?, shareScope?, singleton?, strictVersion?, version? } | non-empty string }, ...] | object { <key>: object { eager?, import?, packageName?, requiredVersion?, shareKey?, shareScope?, singleton?, strictVersion?, version? } | non-empty string }
-> Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
Details:
* options.shared['jupyter-dataserializers'].import should be one of these:
false | non-empty string
-> Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.
Details:
* options.shared['jupyter-dataserializers'].import should be false.
-> No provided or fallback module.
* options.shared['jupyter-dataserializers'].import should be a non-empty string.
-> A module that should be shared in the share scope.
error Command failed with exit code 2.