Jupyter lab build fails with webpack-cli error

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.

What is the output of jupyter labextension list?

I currently have a lot of extensions loaded. The reason I tried to build is the following output from jupyter labextension list:

Other labextensions (built into JupyterLab)
   app dir: C:\Users\manow\miniconda3\envs\py37_ml_TfGpuMain\share\jupyter\lab
        jupyter-gmaps v0.9.0 enabled ok
        jupyter-widget-datetime v1.2.0 enabled ok

Build recommended, please run `jupyter lab build`:
    jupyter-gmaps needs to be included in build
    jupyter-widget-datetime needs to be included in build

However, I tried creating a new conda environment with gmaps, jupyterlab=3.3.4, jupyter, and nodejs=18.9.0, and I was able to run jupyter lab build in that environment. I then looked at all of the webpack*config.js files, and they are all identical, so I’m not sure why it would build in the second environment but not the first.

I was able to reproduce this error in a conda environment with only the packages ipyscales jupyterlab jupyter and nodejs installed, so I guess I will report this as an issue with the ipyscales package.