[Pkg-javascript-devel] Bug#1002259: nodejs: FTBFS: TypeError: marked is not a function

Lucas Nussbaum lucas at debian.org
Tue Dec 21 16:34:26 GMT 2021


Source: nodejs
Version: 12.22.7~dfsg-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> mkdir -p out/doc
> mkdir -p out/doc/api
> cp -r doc/api out/doc/
> rm -f out/doc/api/*.html
> rm -f out/doc/api/*.json
> if [ -x /<<PKGBUILDDIR>>/./node ] && [ -e /<<PKGBUILDDIR>>/./node ]; then /<<PKGBUILDDIR>>/./node  tools/doc/generate.js --node-version=v12.22.7 --format=html doc/api/addons.md > out/doc/api/addons.html; elif [ -x `which node` ] && [ -e `which node` ] && [ `which node` ]; then `which node`  tools/doc/generate.js --node-version=v12.22.7 --format=html doc/api/addons.md > out/doc/api/addons.html; else echo "No available node, cannot run \"node  tools/doc/generate.js --node-version=v12.22.7 --format=html doc/api/addons.md > out/doc/api/addons.html\""; exit 1; fi;
> /<<PKGBUILDDIR>>/tools/doc/html.js:43
> const gtocHTML = marked(gtocMD).replace(
>                  ^
> 
> TypeError: marked is not a function
>     at Object.<anonymous> (/<<PKGBUILDDIR>>/tools/doc/html.js:43:18)
>     at Module._compile (internal/modules/cjs/loader.js:999:30)
>     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
>     at Module.load (internal/modules/cjs/loader.js:863:32)
>     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
>     at Module.require (internal/modules/cjs/loader.js:887:19)
>     at require (internal/modules/cjs/helpers.js:74:18)
>     at /<<PKGBUILDDIR>>/tools/doc/generate.js:63:7
>     at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
> make[3]: *** [Makefile:746: out/doc/api/addons.html] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/nodejs_12.22.7~dfsg-2_unstable.log

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 marking 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