[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
> 
> ./katex.js → dist/katex.mjs...
> created dist/katex.mjs in 4.5s
> 
> ./contrib/auto-render/auto-render.js → dist/contrib/auto-render.mjs...
> created dist/contrib/auto-render.mjs in 62ms
> 
> ./contrib/mhchem/mhchem.js → dist/contrib/mhchem.mjs...
> created dist/contrib/mhchem.mjs in 336ms
> 
> ./contrib/copy-tex/copy-tex.js → dist/contrib/copy-tex.mjs...
> created dist/contrib/copy-tex.mjs in 37ms
> 
> ./contrib/mathtex-script-type/mathtex-script-type.js → dist/contrib/mathtex-script-type.mjs...
> created dist/contrib/mathtex-script-type.mjs in 13ms
> 
> ./contrib/render-a11y-string/render-a11y-string.js → dist/contrib/render-a11y-string.mjs...
> created dist/contrib/render-a11y-string.mjs in 68ms
> + webpack
> assets by status 271 KiB [cached] 1 asset
> orphan modules 623 KiB [orphan] 87 modules
> runtime modules 416 bytes 2 modules
> cacheable modules 624 KiB
>   ./katex.webpack.js + 86 modules 624 KiB [built] [code generated]
>   ./src/katex.less 39 bytes [built] [code generated] [1 error]
> 
> ERROR in ./src/katex.less (./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)
> Module build failed (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)
>  @ ./src/katex.less
>  @ ./katex.webpack.js 9:0-26
> 
> ERROR in ./src/katex.less
> Module build failed (from ../../../usr/share/nodejs/mini-css-extract-plugin/dist/loader.js):
> HookWebpackError: Module build failed (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 error --
> Error: Module build failed (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 Error("Module build failed (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)");
>  @ ./katex.webpack.js 9:0-26
> 
> webpack 5.76.1 compiled with 2 errors in 9034 ms
> 
> asset contrib/auto-render.js 3.4 KiB [emitted] [minimized] (name: contrib/auto-render)
> runtime modules 718 bytes 3 modules
> orphan modules 2 KiB [orphan] 1 module
> built modules 6.9 KiB [built]
>   ./contrib/auto-render/auto-render.js + 1 modules 6.85 KiB [built] [code generated]
>   external "katex" 42 bytes [built] [code generated]
> webpack 5.76.1 compiled successfully in 2681 ms
> 
> asset contrib/mhchem.js 32.9 KiB [emitted] [minimized] (name: contrib/mhchem)
> runtime modules 718 bytes 3 modules
> built modules 74 KiB [built]
>   ./contrib/mhchem/mhchem.js 74 KiB [built] [code generated]
>   external "katex" 42 bytes [built] [code generated]
> webpack 5.76.1 compiled successfully in 3068 ms
> 
> asset contrib/copy-tex.js 1.59 KiB [emitted] [minimized] (name: contrib/copy-tex)
> orphan modules 2.04 KiB [orphan] 1 module
> ./contrib/copy-tex/copy-tex.js + 1 modules 3.74 KiB [built] [code generated]
> webpack 5.76.1 compiled successfully in 2647 ms
> 
> asset contrib/mathtex-script-type.js 1.26 KiB [emitted] [minimized] (name: contrib/mathtex-script-type)
> runtime modules 718 bytes 3 modules
> built modules 781 bytes [built]
>   ./contrib/mathtex-script-type/mathtex-script-type.js 739 bytes [built] [code generated]
>   external "katex" 42 bytes [built] [code generated]
> webpack 5.76.1 compiled successfully in 2995 ms
> 
> asset contrib/render-a11y-string.js 8.31 KiB [emitted] [minimized] (name: contrib/render-a11y-string)
> runtime modules 718 bytes 3 modules
> built modules 20 KiB [built]
>   ./contrib/render-a11y-string/render-a11y-string.js 19.9 KiB [built] [code generated]
>   external "katex" 42 bytes [built] [code generated]
> webpack 5.76.1 compiled successfully 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