#1142899 jupyter-notebook: FTBFS: TypeError: Cannot read properties of undefined (reading 'trim')

#1142899#5
Date:
2026-07-27 18:04:45 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202607/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:jupyter-notebook, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]

Building extension in .



Compilation starting…



HookWebpackError: Cannot read properties of undefined (reading 'trim')
    at makeWebpackError (/usr/share/nodejs/webpack/lib/errors/HookWebpackError.js:78:9)
    at /usr/share/nodejs/webpack/lib/Compilation.js:3816:12
    at eval (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:23:1)
    at fn (/usr/share/nodejs/webpack/lib/Compilation.js:688:17)
    at _next1 (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:21:1)
    at eval (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:37:1)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
-- inner error --
TypeError: Cannot read properties of undefined (reading 'trim')
    at WebpackInnerModuleIterator.getActualFilename (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:61:42)
    at WebpackInnerModuleIterator.internalCallback (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:37:35)
    at WebpackInnerModuleIterator.iterateModules (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:21:9)
    at /usr/share/nodejs/license-webpack-plugin/dist/PluginChunkReadHandler.js:20:39
    at WebpackChunkModuleIterator.iterateModules (/usr/share/nodejs/license-webpack-plugin/dist/WebpackChunkModuleIterator.js:42:21)
    at PluginChunkReadHandler.processChunk (/usr/share/nodejs/license-webpack-plugin/dist/PluginChunkReadHandler.js:19:29)
    at _loop_1 (/usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:135:37)
    at WebpackCompilerHandler.iterateChunks (/usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:160:17)
    at /usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:50:31
    at fn (/usr/share/nodejs/webpack/lib/Compilation.js:686:10)
caused by plugins in Compilation.hooks.processAssets
TypeError: Cannot read properties of undefined (reading 'trim')
    at WebpackInnerModuleIterator.getActualFilename (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:61:42)
    at WebpackInnerModuleIterator.internalCallback (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:37:35)
    at WebpackInnerModuleIterator.iterateModules (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:21:9)
    at /usr/share/nodejs/license-webpack-plugin/dist/PluginChunkReadHandler.js:20:39
    at WebpackChunkModuleIterator.iterateModules (/usr/share/nodejs/license-webpack-plugin/dist/WebpackChunkModuleIterator.js:42:21)
    at PluginChunkReadHandler.processChunk (/usr/share/nodejs/license-webpack-plugin/dist/PluginChunkReadHandler.js:19:29)
    at _loop_1 (/usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:135:37)
    at WebpackCompilerHandler.iterateChunks (/usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:160:17)
    at /usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:50:31
    at fn (/usr/share/nodejs/webpack/lib/Compilation.js:686:10)


/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js:106
            throw new Error(err.details);
                  ^

Error: caused by plugins in Compilation.hooks.processAssets
TypeError: Cannot read properties of undefined (reading 'trim')
    at WebpackInnerModuleIterator.getActualFilename (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:61:42)
    at WebpackInnerModuleIterator.internalCallback (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:37:35)
    at WebpackInnerModuleIterator.iterateModules (/usr/share/nodejs/license-webpack-plugin/dist/WebpackInnerModuleIterator.js:21:9)
    at /usr/share/nodejs/license-webpack-plugin/dist/PluginChunkReadHandler.js:20:39
    at WebpackChunkModuleIterator.iterateModules (/usr/share/nodejs/license-webpack-plugin/dist/WebpackChunkModuleIterator.js:42:21)
    at PluginChunkReadHandler.processChunk (/usr/share/nodejs/license-webpack-plugin/dist/PluginChunkReadHandler.js:19:29)
    at _loop_1 (/usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:135:37)
    at WebpackCompilerHandler.iterateChunks (/usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:160:17)
    at /usr/share/nodejs/license-webpack-plugin/dist/WebpackCompilerHandler.js:50:31
    at fn (/usr/share/nodejs/webpack/lib/Compilation.js:686:10)
    at compilerCallback (/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js:106:19)
    at /<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js:148:21
    at /usr/share/nodejs/webpack/lib/MultiCompiler.js:718:5
    at /usr/share/nodejs/neo-async/async.js:2830:7
    at done (/usr/share/nodejs/neo-async/async.js:2865:11)
    at /usr/share/nodejs/neo-async/async.js:2818:7
    at /usr/share/nodejs/webpack/lib/errors/HookWebpackError.js:99:2
    at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:31:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/usr/share/nodejs/tapable/lib/Hook.js:21:14)
    at Cache.shutdown (/usr/share/nodejs/webpack/lib/Cache.js:179:23)

Node.js v24.18.0


/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:56: UserWarning: An error occurred.
  warnings.warn("An error occurred.")
/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:57: UserWarning: subprocess.CalledProcessError: Command '['node', '/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js', '--core-path', '/usr/lib/python3/dist-packages/jupyterlab/staging', '/<<PKGBUILDDIR>>/packages/lab-extension']' returned non-zero exit status 1.
  warnings.warn(msg[-1].strip())

/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:58: UserWarning: See the log file for details: /tmp/jupyterlab-debug-oi0xv9px.log
  warnings.warn(f"See the log file for details: {log_path!s}")


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
  File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
    return _build_backend().build_wheel(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        wheel_directory, config_settings, metadata_directory
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/hatchling/build.py", line 58, in build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, versions=["standard"])))
                            ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatchling/builders/plugin/interface.py", line 149, in build
    build_hook.initialize(version, build_data)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/plugin.py", line 87, in initialize
    raise e
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/plugin.py", line 82, in initialize
    build_func(self.target_name, version, **build_kwargs)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/utils.py", line 115, in npm_builder
    run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/utils.py", line 229, in run
    return subprocess.check_call(cmd, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/subprocess.py", line 420, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/jlpm', 'run', 'build:prod']' returned non-zero exit status 1.

TIP pass --env-dir and --sdist-extract-dir to keep the build environment and sources, then see https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:485: build: plugin pyproject failed with: exit code=1: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14
dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.14" --parallel=2 returned exit code 13
make[1]: *** [debian/rules:21: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1142899#10
Date:
2026-08-02 17:09:34 UTC
From:
To:
reassign 1140984 src:node-license-webpack-plugin 4.0.2-2
affects 1140984 + src:ipywidgets
reassign 1142899 src:node-license-webpack-plugin 4.0.2-2
affects 1142899 + src:jupyter-notebook
reassign 1142900 src:node-license-webpack-plugin 4.0.2-2
affects 1142900 + src:jupyterlab-macaulay2
forcemerge 1140984 1142899 1142900
retitle 1140984 node-license-webpack-plugin: cannot parse ProvideSharedModule identifiers from webpack >= 5.107; breaks all jupyter labextension builds
thanks

These three bugs are all really the same license-webpack-plugin bug:
https://github.com/jupyterlab/jupyterlab/issues/18984

#1142899#25
Date:
2026-08-02 23:36:58 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-license-webpack-plugin, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1140984@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Doug Torrance <dtorrance@debian.org> (supplier of updated node-license-webpack-plugin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 02 Aug 2026 19:14:33 -0400
Source: node-license-webpack-plugin
Built-For-Profiles: noudeb
Architecture: source
Version: 4.0.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Doug Torrance <dtorrance@debian.org>
Closes: 1140984
Changes:
 node-license-webpack-plugin (4.0.2-3) unstable; urgency=medium
 .
   * Team upload.
   * debian/patches/webpack-5.107-provide-module.patch
     - New patch; support webpack >= 5.107 "provide module" identifiers
       (Closes: #1140984).
Checksums-Sha1:
 63389bc750ad354c76a894978797223c3e39feb7 2297 node-license-webpack-plugin_4.0.2-3.dsc
 19f73c13db979a6e942929a97095fd621af2870c 5056 node-license-webpack-plugin_4.0.2-3.debian.tar.xz
 e7d9f61f2bc128b586557e744ae9bfbe8d89c66c 23145 node-license-webpack-plugin_4.0.2-3_source.buildinfo
Checksums-Sha256:
 eea821a389ee1b3174afb50d559bfb879efec584b3228cf9b7473a7f9e16d08c 2297 node-license-webpack-plugin_4.0.2-3.dsc
 85cd7ecea66c116e583cce463eab3d68df5b405a7f8b2cd4cf6105313661386a 5056 node-license-webpack-plugin_4.0.2-3.debian.tar.xz
 c7ecafeeba14e86a08c936cbe71aa6da14b666c363dca4ec36db43b1bad4ffe4 23145 node-license-webpack-plugin_4.0.2-3_source.buildinfo
Files:
 ca354d85f44ce599886921a8ffc734c2 2297 javascript optional node-license-webpack-plugin_4.0.2-3.dsc
 c5cdd843e4219db0a6d706803679515f 5056 javascript optional node-license-webpack-plugin_4.0.2-3.debian.tar.xz
 ffedca6288d1f3c97c88af018b5ad326 23145 javascript optional node-license-webpack-plugin_4.0.2-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEEewOa7Ermd89P6sIRzrGIZ6EVCQwFAmpvz9cVHGR0b3JyYW5j
ZUBkZWJpYW4ub3JnAAoJEM6xiGehFQkMLmkP/iVgpadn+Mn25NV2VSJcYyAmFzgN
R8ibI8d8zZkDv+Cob7PlWqa5FwpSSmEVyLjOzURrUYFsd8dFVfkwUkyDTGVw3pXJ
iy6PqkSwieOrgS8HecqujwVmf+wclDPvNaJB2/l+eK6+tAEZl7e0fnkyUSlcxlCp
HXP/B9n5YeCtlk1gMSdGZ4X7m8WBBeorKTUPTtWhaQdIRvvEeNYPwc2gz7ck3pY+
JvorTIKwoXvuM+oq9K96twoFwf9ENrxDkFRF9QDBGgsJuZlR8nOIH8ZosBuwqCqq
s/ercy8m7jy6lqsOP9bqE47Gcrkn0bOh22CLfZsxVgjqG8wQTW5pe1hiSai+J4Qh
Hh4iIKtt5Ic5eeQiD1Aa6z5lIzoRUGdfHIdc+xLuwSEvxelkgEgP7yG9Pihlxuto
gJcnaLU8xLJELhTSYmVXoxcYyXfqeuBigz0lD1wqZvx7z7tOIjJlUAS2m0KZII1L
mYKpeAROEBFTXR/wE7AJp+mxYqmQBJf5w5zvJvEPbJj9OBrjG7/Ah1HvMBO5jQzn
LUtPCqntfpNIZ/zZh5dhUZEXV7Aold3801Ywn3Rzfut2USQ8FJhbq2iIc10DtJw0
Z0val70fkaMIRe+ip8hejx3NhvKRUm9qEfVIeYxkjHHO3jy3U5EcnUDS6RSruC7w
jVPRIsT6O8zIzJ6Q
=vrCr
-----END PGP SIGNATURE-----