[Pkg-javascript-devel] Bug#1042282: node-rollup-plugin-buble: FTBFS: make[1]: *** [debian/rules:8: override_dh_auto_build] Error 1

Lucas Nussbaum lucas at debian.org
Wed Jul 26 21:25:43 BST 2023


Source: node-rollup-plugin-buble
Version: 1.0.1+ds1+~0.19.8-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230726 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/legacy/build
> 	cd ./legacy && sh -ex ../debian/nodejs/legacy/build
> + rollup -c
> 
> src/index.js → dist/rollup-plugin-buble.es.js, dist/rollup-plugin-buble.cjs.js...
> created dist/rollup-plugin-buble.es.js, dist/rollup-plugin-buble.cjs.js in 62ms
> cd packages/buble && rollup -c
> 
> src/index.ts → ./dist/cjs/index.js, ./dist/es/index.js...
> [!] (plugin typescript) Error: @rollup/plugin-typescript TS2322: Type '(this: TransformPluginContext, code: string, id: string) => TransformOutput | null' is not assignable to type 'ObjectHook<(this: TransformPluginContext, code: string, id: string) => TransformResult | Promise<TransformResult>, {}> | undefined'.
>   Type '(this: TransformPluginContext, code: string, id: string) => TransformOutput | null' is not assignable to type '(this: TransformPluginContext, code: string, id: string) => TransformResult | Promise<TransformResult>'.
>     Type 'TransformOutput | null' is not assignable to type 'TransformResult | Promise<TransformResult>'.
>       Type 'TransformOutput' is not assignable to type 'TransformResult | Promise<TransformResult>'.
>         Type 'TransformOutput' is not assignable to type 'Partial<SourceDescription>'.
>           Types of property 'map' are incompatible.
>             Type 'SourceMap' is not assignable to type 'SourceMapInput | undefined'.
>               Type 'SourceMap' is not assignable to type 'ExistingRawSourceMap'.
>                 Types of property 'sourcesContent' are incompatible.
>                   Type '(string | null)[]' is not assignable to type 'string[]'.
>                     Type 'string | null' is not assignable to type 'string'.
>                       Type 'null' is not assignable to type 'string'.
> src/index.ts (14:5)
> 
> 14     transform(code, id) {
>        ~~~~~~~~~
> 
>   ../../../../../usr/share/nodejs/rollup/dist/rollup.d.ts:384:2
>     384  transform: TransformHook;
>          ~~~~~~~~~
>     The expected type comes from property 'transform' which is declared here on type 'Plugin'
> 
>     at Object.onwarn (file:///<<PKGBUILDDIR>>/shared/rollup.config.mjs:20:27)
>     at /usr/share/nodejs/rollup/dist/shared/rollup.js:1079:87
>     at Object.onwarn (/usr/share/nodejs/rollup/dist/shared/rollup.js:25070:13)
>     at Object.warn (/usr/share/nodejs/rollup/dist/shared/rollup.js:24201:21)
>     at emitDiagnostic (file:///usr/share/nodejs/@rollup/plugin-typescript/dist/es/index.js:531:17)
>     at reportDiagnostics (file:///usr/share/nodejs/@rollup/plugin-typescript/dist/es/index.js:536:9)
>     at Array.forEach (<anonymous>)
>     at emitFilesAndReportErrors (/usr/share/nodejs/typescript/lib/typescript.js:124992:21)
>     at Object.result.afterProgramCreate (/usr/share/nodejs/typescript/lib/typescript.js:125181:13)
>     at Object.afterProgramCreate (file:///usr/share/nodejs/@rollup/plugin-typescript/dist/es/index.js:694:29)
> 
> 
> make[1]: *** [debian/rules:8: override_dh_auto_build] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/07/26/node-rollup-plugin-buble_1.0.1+ds1+~0.19.8-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230726;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230726&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