[Pkg-javascript-devel] Bug#1054853: node-katex: FTBFS: TypeError: Cannot read properties of undefined (reading '.cjs')
Lucas Nussbaum
lucas at debian.org
Fri Oct 27 20:52:03 BST 2023
Source: node-katex
Version: 0.16.4+~cs6.1.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20231027 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> dh binary
> dh_update_autotools_config
> dh_autoreconf
> dh_auto_configure --buildsystem=nodejs
> Link ./node_modules/type-fest -> /usr/share/nodejs/type-fest
> Link ./node_modules/@types/babel__core -> /usr/share/nodejs/@types/babel__core
> Link ./node_modules/@types/jest -> /usr/share/nodejs/@types/jest
> Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
> Link ./node_modules/@types/require-from-string -> /usr/share/nodejs/@types/require-from-string
> Link node_modules/babel-plugin-preval -> ../babel-plugin-preval
> Link node_modules/babel-plugin-version-inline -> ../babel-plugin-version-inline
> Link node_modules/@types/babel-plugin-macros -> ../../debian/build_modules/@types/babel-plugin-macros
> Link node_modules/@types/babel-plugin-tester -> ../../debian/build_modules/@types/babel-plugin-tester
> Link node_modules/babel-plugin-macros -> ../debian/build_modules/babel-plugin-macros
> Link node_modules/babel-plugin-transform-react-remove-prop-types -> ../debian/build_modules/babel-plugin-transform-react-remove-prop-types
> Link node_modules/kcd-scripts -> ../debian/build_modules/kcd-scripts
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/babel-plugin-version-inline/build
> cd ./babel-plugin-version-inline && sh -ex ../debian/nodejs/babel-plugin-version-inline/build
> + babeljs src -d lib
> Successfully compiled 1 file with Babel (459ms).
> Found debian/nodejs/babel-plugin-preval/build
> cd ./babel-plugin-preval && sh -ex ../debian/nodejs/babel-plugin-preval/build
> + mkdir -p node_modules
> + cp -a ../debian/build_modules/kcd-scripts node_modules/
> + ./node_modules/kcd-scripts/dist/index.js build
> Successfully compiled 4 files with Babel (666ms).
> Generating TypeScript definitions
> TypeScript definitions generated
> Found debian/nodejs/./build
> cd ./. && sh -ex debian/nodejs/./build
> + rollup -c
> [36m
> [1m./katex.js[22m → [1mdist/katex.mjs[22m...[39m
> [32mcreated [1mdist/katex.mjs[22m in [1m4.5s[22m[39m
> [36m
> [1m./contrib/auto-render/auto-render.js[22m → [1mdist/contrib/auto-render.mjs[22m...[39m
> [32mcreated [1mdist/contrib/auto-render.mjs[22m in [1m62ms[22m[39m
> [36m
> [1m./contrib/mhchem/mhchem.js[22m → [1mdist/contrib/mhchem.mjs[22m...[39m
> [32mcreated [1mdist/contrib/mhchem.mjs[22m in [1m336ms[22m[39m
> [36m
> [1m./contrib/copy-tex/copy-tex.js[22m → [1mdist/contrib/copy-tex.mjs[22m...[39m
> [32mcreated [1mdist/contrib/copy-tex.mjs[22m in [1m37ms[22m[39m
> [36m
> [1m./contrib/mathtex-script-type/mathtex-script-type.js[22m → [1mdist/contrib/mathtex-script-type.mjs[22m...[39m
> [32mcreated [1mdist/contrib/mathtex-script-type.mjs[22m in [1m13ms[22m[39m
> [36m
> [1m./contrib/render-a11y-string/render-a11y-string.js[22m → [1mdist/contrib/render-a11y-string.mjs[22m...[39m
> [32mcreated [1mdist/contrib/render-a11y-string.mjs[22m in [1m68ms[22m[39m
> + webpack
> assets by status 271 KiB [1m[32m[cached][39m[22m 1 asset
> orphan modules 623 KiB [1m[33m[orphan][39m[22m 87 modules
> runtime modules 416 bytes 2 modules
> cacheable modules 624 KiB
> [1m./katex.webpack.js + 86 modules[39m[22m 624 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> [1m./src/katex.less[39m[22m 39 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m [1m[31m[1 error][39m[22m
>
> [1m[31mERROR[39m[22m in [1m./src/katex.less[39m[22m (./src/katex.less.webpack[javascript/auto]!=!../../../usr/share/nodejs/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../usr/share/nodejs/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!../../../usr/share/nodejs/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/katex.less)
> [1mModule build [1m[31mfailed[39m[22m[1m (from ../../../usr/share/nodejs/postcss-loader/dist/cjs.js):
> TypeError: Cannot read properties of undefined (reading '.cjs')
> at loadConfig (/usr/share/nodejs/postcss-loader/dist/utils.js:79:44)
> at async Object.loader (/usr/share/nodejs/postcss-loader/dist/index.js:45:22)[39m[22m
> @ ./src/katex.less
> @ ./katex.webpack.js 9:0-26
>
> [1m[31mERROR[39m[22m in [1m./src/katex.less[39m[22m
> [1mModule build [1m[31mfailed[39m[22m[1m (from ../../../usr/share/nodejs/mini-css-extract-plugin/dist/loader.js):
> HookWebpackError: Module build [1m[31mfailed[39m[22m[1m (from ../../../usr/share/nodejs/postcss-loader/dist/cjs.js):
> TypeError: Cannot read properties of undefined (reading '.cjs')
> at loadConfig (/usr/share/nodejs/postcss-loader/dist/utils.js:79:44)
> at async Object.loader (/usr/share/nodejs/postcss-loader/dist/index.js:45:22)
> at tryRunOrWebpackError (/usr/share/nodejs/webpack/lib/HookWebpackError.js:88:9)
> at __webpack_require_module__ (/usr/share/nodejs/webpack/lib/Compilation.js:5058:12)
> at __webpack_require__ (/usr/share/nodejs/webpack/lib/Compilation.js:5015:18)
> at /usr/share/nodejs/webpack/lib/Compilation.js:5086:20
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3485:9)
> at done (/usr/share/nodejs/neo-async/lib/async.js:3527:9)
> at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
> at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/usr/share/nodejs/tapable/lib/Hook.js:18:14)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4993:43
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3482:9)
> at timesSync (/usr/share/nodejs/neo-async/lib/async.js:2297:7)
> at Object.eachLimit (/usr/share/nodejs/neo-async/lib/async.js:3463:5)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4958:16
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3485:9)
> at timesSync (/usr/share/nodejs/neo-async/lib/async.js:2297:7)
> at Object.eachLimit (/usr/share/nodejs/neo-async/lib/async.js:3463:5)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4926:15
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3485:9)
> at done (/usr/share/nodejs/neo-async/lib/async.js:3527:9)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4873:8
> at /usr/share/nodejs/webpack/lib/Compilation.js:3352:32
> at /usr/share/nodejs/webpack/lib/HookWebpackError.js:68:3
> at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
> at Cache.store (/usr/share/nodejs/webpack/lib/Cache.js:107:20)
> at ItemCacheFacade.store (/usr/share/nodejs/webpack/lib/CacheFacade.js:137:15)
> at /usr/share/nodejs/webpack/lib/Compilation.js:3352:11
> at /usr/share/nodejs/webpack/lib/Cache.js:93:5
> at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
> at Cache.get (/usr/share/nodejs/webpack/lib/Cache.js:75:18)
> at ItemCacheFacade.get (/usr/share/nodejs/webpack/lib/CacheFacade.js:111:15)
> at Compilation._codeGenerationModule (/usr/share/nodejs/webpack/lib/Compilation.js:3322:9)
> at codeGen (/usr/share/nodejs/webpack/lib/Compilation.js:4861:11)
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3482:9)
> at timesSync (/usr/share/nodejs/neo-async/lib/async.js:2297:7)
> at Object.eachLimit (/usr/share/nodejs/neo-async/lib/async.js:3463:5)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4891:14
> at processQueue (/usr/share/nodejs/webpack/lib/util/processAsyncTree.js:55:4)
> at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
> -- inner [1m[31merror[39m[22m[1m --
> [1m[31mError[39m[22m[1m: Module build [1m[31mfailed[39m[22m[1m (from ../../../usr/share/nodejs/postcss-loader/dist/cjs.js):
> TypeError: Cannot read properties of undefined (reading '.cjs')
> at loadConfig (/usr/share/nodejs/postcss-loader/dist/utils.js:79:44)
> at async Object.loader (/usr/share/nodejs/postcss-loader/dist/index.js:45:22)
> at Object.<anonymous> (/usr/share/nodejs/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!/usr/share/nodejs/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!/usr/share/nodejs/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!/<<PKGBUILDDIR>>/src/katex.less:1:7)
> at /usr/share/nodejs/webpack/lib/javascript/JavascriptModulesPlugin.js:441:11
> at Hook.eval [as call] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
> at Hook.CALL_DELEGATE [as _call] (/usr/share/nodejs/tapable/lib/Hook.js:14:14)
> at /usr/share/nodejs/webpack/lib/Compilation.js:5060:39
> at tryRunOrWebpackError (/usr/share/nodejs/webpack/lib/HookWebpackError.js:83:7)
> at __webpack_require_module__ (/usr/share/nodejs/webpack/lib/Compilation.js:5058:12)
> at __webpack_require__ (/usr/share/nodejs/webpack/lib/Compilation.js:5015:18)
> at /usr/share/nodejs/webpack/lib/Compilation.js:5086:20
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3485:9)
> at done (/usr/share/nodejs/neo-async/lib/async.js:3527:9)
> at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
> at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/usr/share/nodejs/tapable/lib/Hook.js:18:14)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4993:43
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3482:9)
> at timesSync (/usr/share/nodejs/neo-async/lib/async.js:2297:7)
> at Object.eachLimit (/usr/share/nodejs/neo-async/lib/async.js:3463:5)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4958:16
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3485:9)
> at timesSync (/usr/share/nodejs/neo-async/lib/async.js:2297:7)
> at Object.eachLimit (/usr/share/nodejs/neo-async/lib/async.js:3463:5)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4926:15
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3485:9)
> at done (/usr/share/nodejs/neo-async/lib/async.js:3527:9)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4873:8
> at /usr/share/nodejs/webpack/lib/Compilation.js:3352:32
> at /usr/share/nodejs/webpack/lib/HookWebpackError.js:68:3
> at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
> at Cache.store (/usr/share/nodejs/webpack/lib/Cache.js:107:20)
> at ItemCacheFacade.store (/usr/share/nodejs/webpack/lib/CacheFacade.js:137:15)
> at /usr/share/nodejs/webpack/lib/Compilation.js:3352:11
> at /usr/share/nodejs/webpack/lib/Cache.js:93:5
> at Hook.eval [as callAsync] (eval at create (/usr/share/nodejs/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
> at Cache.get (/usr/share/nodejs/webpack/lib/Cache.js:75:18)
> at ItemCacheFacade.get (/usr/share/nodejs/webpack/lib/CacheFacade.js:111:15)
> at Compilation._codeGenerationModule (/usr/share/nodejs/webpack/lib/Compilation.js:3322:9)
> at codeGen (/usr/share/nodejs/webpack/lib/Compilation.js:4861:11)
> at symbolIterator (/usr/share/nodejs/neo-async/lib/async.js:3482:9)
> at timesSync (/usr/share/nodejs/neo-async/lib/async.js:2297:7)
> at Object.eachLimit (/usr/share/nodejs/neo-async/lib/async.js:3463:5)
> at /usr/share/nodejs/webpack/lib/Compilation.js:4891:14
> at processQueue (/usr/share/nodejs/webpack/lib/util/processAsyncTree.js:55:4)
> at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
>
> Generated code for /usr/share/nodejs/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!/usr/share/nodejs/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!/usr/share/nodejs/less-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!/<<PKGBUILDDIR>>/src/katex.less
> 1 | throw new [1m[31mError[39m[22m[1m("Module build [1m[31mfailed[39m[22m[1m (from ../../../usr/share/nodejs/postcss-loader/dist/cjs.js):\nTypeError: Cannot read properties of undefined (reading '.cjs')\n at loadConfig (/usr/share/nodejs/postcss-loader/dist/utils.js:79:44)\n at async Object.loader (/usr/share/nodejs/postcss-loader/dist/index.js:45:22)");[39m[22m
> @ ./katex.webpack.js 9:0-26
>
> webpack 5.76.1 compiled with [1m[31m2 errors[39m[22m in 9034 ms
>
> asset [1m[32mcontrib/auto-render.js[39m[22m 3.4 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: contrib/auto-render)
> runtime modules 718 bytes 3 modules
> orphan modules 2 KiB [1m[33m[orphan][39m[22m 1 module
> built modules 6.9 KiB [1m[33m[built][39m[22m
> [1m./contrib/auto-render/auto-render.js + 1 modules[39m[22m 6.85 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> [1mexternal "katex"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> webpack 5.76.1 compiled [1m[32msuccessfully[39m[22m in 2681 ms
>
> asset [1m[32mcontrib/mhchem.js[39m[22m 32.9 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: contrib/mhchem)
> runtime modules 718 bytes 3 modules
> built modules 74 KiB [1m[33m[built][39m[22m
> [1m./contrib/mhchem/mhchem.js[39m[22m 74 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> [1mexternal "katex"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> webpack 5.76.1 compiled [1m[32msuccessfully[39m[22m in 3068 ms
>
> asset [1m[32mcontrib/copy-tex.js[39m[22m 1.59 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: contrib/copy-tex)
> orphan modules 2.04 KiB [1m[33m[orphan][39m[22m 1 module
> [1m./contrib/copy-tex/copy-tex.js + 1 modules[39m[22m 3.74 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> webpack 5.76.1 compiled [1m[32msuccessfully[39m[22m in 2647 ms
>
> asset [1m[32mcontrib/mathtex-script-type.js[39m[22m 1.26 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: contrib/mathtex-script-type)
> runtime modules 718 bytes 3 modules
> built modules 781 bytes [1m[33m[built][39m[22m
> [1m./contrib/mathtex-script-type/mathtex-script-type.js[39m[22m 739 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> [1mexternal "katex"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> webpack 5.76.1 compiled [1m[32msuccessfully[39m[22m in 2995 ms
>
> asset [1m[32mcontrib/render-a11y-string.js[39m[22m 8.31 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: contrib/render-a11y-string)
> runtime modules 718 bytes 3 modules
> built modules 20 KiB [1m[33m[built][39m[22m
> [1m./contrib/render-a11y-string/render-a11y-string.js[39m[22m 19.9 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> [1mexternal "katex"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
> webpack 5.76.1 compiled [1m[32msuccessfully[39m[22m in 2703 ms
> dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned exit code 1
> make: *** [debian/rules:5: binary] Error 25
The full build log is available from:
http://qa-logs.debian.net/2023/10/27/node-katex_0.16.4+~cs6.1.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231027;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231027&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-javascript-devel
mailing list