[Pkg-javascript-devel] Bug#978390: node-rollup-plugin-typescript: FTBFS: src/index.ts(69, 54): error TS2345: Argument of type 'NormalizedOutputOptions' is not assignable to parameter of type 'OutputOptions'.

Lucas Nussbaum lucas at debian.org
Sat Dec 26 22:05:44 GMT 2020


Source: node-rollup-plugin-typescript
Version: 6.0.0+~1.0.1-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201226 ftbfs-bullseye

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-typescript.cjs.js, dist/rollup-plugin-typescript.es.js...
> (!) Entry module "src/index.js" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/index.js" to use named exports only.
> https://rollupjs.org/guide/en/#outputexports
> src/index.js
> created dist/rollup-plugin-typescript.cjs.js, dist/rollup-plugin-typescript.es.js in 47ms
> # Step 1: build a temporary @rollup/plugin-typescript
> cd packages/typescript && \
> 	ln -s ../../../node_modules/@types/resolve node_modules/ && \
> 	mkdir dist && \
> 	NODE_PATH=node_modules tsc --module CommonJS --esModuleInterop src/index.ts
> src/index.ts(69,54): error TS2345: Argument of type 'NormalizedOutputOptions' is not assignable to parameter of type 'OutputOptions'.
>   Types of property 'amd' are incompatible.
>     Type 'NormalizedAmdOptions' is not assignable to type 'AmdOptions'.
>       Type '{ autoId: false; id?: string; } & { define: string; }' is not assignable to type 'AmdOptions'.
>         Type '{ autoId: false; id?: string; } & { define: string; }' is not assignable to type '{ autoId?: false; id: string; } & { define?: string; }'.
>           Type '{ autoId: false; id?: string; } & { define: string; }' is not assignable to type '{ autoId?: false; id: string; }'.
>             Property 'id' is optional in type '{ autoId: false; id?: string; } & { define: string; }' but required in type '{ autoId?: false; id: string; }'.
> src/index.ts(70,54): error TS2345: Argument of type 'NormalizedOutputOptions' is not assignable to parameter of type 'OutputOptions'.
> make[1]: *** [debian/rules:25: override_dh_auto_build] Error 2

The full build log is available from:
   http://qa-logs.debian.net/2020/12/26/node-rollup-plugin-typescript_6.0.0+~1.0.1-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 me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-javascript-devel mailing list