[Pkg-javascript-devel] Bug#1009581: node-zrender: FTBFS: @rollup/plugin-typescript TS2322: Type 'string' is not assignable to type 'GlobalCompositeOperation'.

Lucas Nussbaum lucas at debian.org
Tue Apr 12 20:25:18 BST 2022


Source: node-zrender
Version: 5.3.1+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220412 ftbfs-bookworm

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/@rollup/plugin-typescript -> /usr/share/nodejs/@rollup/plugin-typescript
> Link ./node_modules/tslib -> /usr/share/nodejs/tslib
> Link ./node_modules/typescript -> /usr/share/nodejs/typescript
> Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
> Copy /usr/share/nodejs/jest-diff -> ./node_modules/
> Copy /usr/share/nodejs/pretty-format -> ./node_modules/
> Copy /usr/share/nodejs/ts-jest -> ./node_modules/
> Copy /usr/share/nodejs/@types/jest -> ./node_modules/@types
>    dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/./build
> 	cd ./. && sh -ex debian/nodejs/./build
> + set -e
> + node build/build.js --minify
> @rollup/plugin-typescript TS2322: Type 'string' is not assignable to type 'GlobalCompositeOperation'.
> [1/0]: index.ts
> [2/0]: src/all.ts
> [3/0]: src/zrender.ts
> [4/0]: src/export.ts
> [5/0]: src/canvas/Painter.ts
> [6/0]: src/svg/Painter.ts
> [7/0]: src/core/env.ts
> [8/0]: src/core/util.ts
> [9/0]: src/Handler.ts
> [10/0]: src/Storage.ts
> [11/0]: src/animation/Animation.ts
> [12/0]: src/dom/HandlerProxy.ts
> [13/0]: src/tool/color.ts
> [14/0]: src/config.ts
> [15/0]: src/graphic/Group.ts
> [16/0]: src/core/matrix.ts
> [17/0]: src/core/vector.ts
> [18/0]: src/tool/path.ts
> [19/0]: src/tool/parseSVG.ts
> [20/0]: src/tool/morphPath.ts
> [21/0]: src/core/Point.ts
> [22/0]: src/Element.ts
> [23/0]: src/graphic/Displayable.ts
> [24/0]: src/graphic/Path.ts
> [25/0]: src/graphic/Image.ts
> [26/0]: src/graphic/CompoundPath.ts
> [27/0]: src/graphic/TSpan.ts
> [28/0]: src/graphic/IncrementalDisplayable.ts
> [29/0]: src/graphic/Text.ts
> [30/0]: src/graphic/shape/Arc.ts
> [31/0]: src/graphic/shape/BezierCurve.ts
> [32/0]: src/graphic/shape/Circle.ts
> [33/0]: src/graphic/shape/Droplet.ts
> [34/0]: src/graphic/shape/Ellipse.ts
> [35/0]: src/graphic/shape/Heart.ts
> [36/0]: src/graphic/shape/Isogon.ts
> [37/0]: src/graphic/shape/Line.ts
> [38/0]: src/graphic/shape/Polygon.ts
> [39/0]: src/graphic/shape/Polyline.ts
> [40/0]: src/graphic/shape/Rect.ts
> [41/0]: src/graphic/shape/Ring.ts
> [42/0]: src/graphic/shape/Rose.ts
> [43/0]: src/graphic/shape/Sector.ts
> [44/0]: src/graphic/shape/Star.ts
> [45/0]: src/graphic/shape/Trochoid.ts
> [46/0]: src/graphic/LinearGradient.ts
> [47/0]: src/graphic/RadialGradient.ts
> [48/0]: src/graphic/Pattern.ts
> [49/0]: src/core/BoundingRect.ts
> [50/0]: src/core/OrientedBoundingRect.ts
> [51/0]: src/debug/showDebugDirtyRect.ts
> [52/0]: src/core/platform.ts
> [53/0]: src/canvas/Layer.ts
> [54/0]: src/animation/requestAnimationFrame.ts
> [55/0]: src/canvas/graphic.ts
> [56/0]: src/graphic/constants.ts
> [57/0]: src/canvas/helper.ts
> [58/0]: src/svg/graphic.ts
> [59/0]: src/svg/core.ts
> [60/0]: src/svg/helper.ts
> [61/0]: src/svg/patch.ts
> [62/0]: src/mixin/Draggable.ts
> [63/0]: src/core/Eventful.ts
> [64/0]: src/core/event.ts
> [65/0]: src/core/GestureMgr.ts
> [66/0]: src/core/timsort.ts
> [67/0]: src/animation/Animator.ts
> [68/0]: src/core/LRU.ts
> [69/0]: src/core/PathProxy.ts
> [70/0]: src/tool/transformPath.ts
> [71/0]: src/tool/parseXML.ts
> [72/0]: src/core/curve.ts
> [73/0]: src/core/Transformable.ts
> [74/0]: src/tool/dividePath.ts
> [75/0]: src/tool/convertPath.ts
> [76/0]: src/contain/text.ts
> [77/0]: src/contain/path.ts
> [78/0]: src/graphic/helper/parseText.ts
> [79/0]: src/graphic/helper/subPixelOptimize.ts
> [80/0]: src/graphic/helper/poly.ts
> [81/0]: src/graphic/helper/roundRect.ts
> [82/0]: src/graphic/helper/roundSector.ts
> [83/0]: src/graphic/Gradient.ts
> [84/0]: src/graphic/helper/image.ts
> [85/0]: src/canvas/dashStyle.ts
> [86/0]: src/svg/SVGPathRebuilder.ts
> [87/0]: src/svg/mapStyleToAttrs.ts
> [88/0]: src/svg/cssAnimation.ts
> [89/0]: src/svg/domapi.ts
> [90/0]: src/core/dom.ts
> [91/0]: src/animation/Clip.ts
> [92/0]: src/animation/easing.ts
> [93/0]: src/animation/cubicEasing.ts
> [94/0]: src/core/bbox.ts
> [95/0]: src/contain/line.ts
> [96/0]: src/contain/cubic.ts
> [97/0]: src/contain/quadratic.ts
> [98/0]: src/contain/arc.ts
> [99/0]: src/contain/windingLine.ts
> [100/0]: src/graphic/helper/smoothBezier.ts
> [101/0]: src/core/fourPointsTransform.ts
> [102/0]: src/contain/util.ts
> [103/1]: ../../../usr/share/nodejs/tslib/tslib.es6.js
> 
> @rollup/plugin-typescript TS2322: Type 'string' is not assignable to type 'GlobalCompositeOperation'.
> [1/0]: index.ts
> [2/0]: src/all.ts
> [3/0]: src/zrender.ts
> [4/0]: src/export.ts
> [5/0]: src/canvas/Painter.ts
> [6/0]: src/svg/Painter.ts
> [7/0]: src/core/env.ts
> [8/0]: src/core/util.ts
> [9/0]: src/Handler.ts
> [10/0]: src/Storage.ts
> [11/0]: src/animation/Animation.ts
> [12/0]: src/dom/HandlerProxy.ts
> [13/0]: src/tool/color.ts
> [14/0]: src/config.ts
> [15/0]: src/graphic/Group.ts
> [16/0]: src/core/matrix.ts
> [17/0]: src/core/vector.ts
> [18/0]: src/tool/path.ts
> [19/0]: src/tool/parseSVG.ts
> [20/0]: src/tool/morphPath.ts
> [21/0]: src/core/Point.ts
> [22/0]: src/Element.ts
> [23/0]: src/graphic/Displayable.ts
> [24/0]: src/graphic/Path.ts
> [25/0]: src/graphic/Image.ts
> [26/0]: src/graphic/CompoundPath.ts
> [27/0]: src/graphic/TSpan.ts
> [28/0]: src/graphic/IncrementalDisplayable.ts
> [29/0]: src/graphic/Text.ts
> [30/0]: src/graphic/shape/Arc.ts
> [31/0]: src/graphic/shape/BezierCurve.ts
> [32/0]: src/graphic/shape/Circle.ts
> [33/0]: src/graphic/shape/Droplet.ts
> [34/0]: src/graphic/shape/Ellipse.ts
> [35/0]: src/graphic/shape/Heart.ts
> [36/0]: src/graphic/shape/Isogon.ts
> [37/0]: src/graphic/shape/Line.ts
> [38/0]: src/graphic/shape/Polygon.ts
> [39/0]: src/graphic/shape/Polyline.ts
> [40/0]: src/graphic/shape/Rect.ts
> [41/0]: src/graphic/shape/Ring.ts
> [42/0]: src/graphic/shape/Rose.ts
> [43/0]: src/graphic/shape/Sector.ts
> [44/0]: src/graphic/shape/Star.ts
> [45/0]: src/graphic/shape/Trochoid.ts
> [46/0]: src/graphic/LinearGradient.ts
> [47/0]: src/graphic/RadialGradient.ts
> [48/0]: src/graphic/Pattern.ts
> [49/0]: src/core/BoundingRect.ts
> [50/0]: src/core/OrientedBoundingRect.ts
> [51/0]: src/debug/showDebugDirtyRect.ts
> [52/0]: src/core/platform.ts
> [53/0]: src/canvas/Layer.ts
> [54/0]: src/animation/requestAnimationFrame.ts
> [55/0]: src/canvas/graphic.ts
> [56/0]: src/graphic/constants.ts
> [57/0]: src/canvas/helper.ts
> [58/0]: src/svg/graphic.ts
> [59/0]: src/svg/core.ts
> [60/0]: src/svg/helper.ts
> [61/0]: src/svg/patch.ts
> [62/0]: src/mixin/Draggable.ts
> [63/0]: src/core/Eventful.ts
> [64/0]: src/core/event.ts
> [65/0]: src/core/GestureMgr.ts
> [66/0]: src/core/timsort.ts
> [67/0]: src/animation/Animator.ts
> [68/0]: src/core/LRU.ts
> [69/0]: src/core/PathProxy.ts
> [70/0]: src/tool/transformPath.ts
> [71/0]: src/tool/parseXML.ts
> [72/0]: src/core/curve.ts
> [73/0]: src/core/Transformable.ts
> [74/0]: src/tool/dividePath.ts
> [75/0]: src/tool/convertPath.ts
> [76/0]: src/contain/text.ts
> [77/0]: src/contain/path.ts
> [78/0]: src/graphic/helper/parseText.ts
> [79/0]: src/graphic/helper/subPixelOptimize.ts
> [80/0]: src/graphic/helper/poly.ts
> [81/0]: src/graphic/helper/roundRect.ts
> [82/0]: src/graphic/helper/roundSector.ts
> [83/0]: src/graphic/Gradient.ts
> [84/0]: src/graphic/helper/image.ts
> [85/0]: src/canvas/dashStyle.ts
> [86/0]: src/svg/SVGPathRebuilder.ts
> [87/0]: src/svg/mapStyleToAttrs.ts
> [88/0]: src/svg/cssAnimation.ts
> [89/0]: src/svg/domapi.ts
> [90/0]: src/core/dom.ts
> [91/0]: src/animation/Clip.ts
> [92/0]: src/animation/easing.ts
> [93/0]: src/animation/cubicEasing.ts
> [94/0]: src/core/bbox.ts
> [95/0]: src/contain/line.ts
> [96/0]: src/contain/cubic.ts
> [97/0]: src/contain/quadratic.ts
> [98/0]: src/contain/arc.ts
> [99/0]: src/contain/windingLine.ts
> [100/0]: src/graphic/helper/smoothBezier.ts
> [101/0]: src/core/fourPointsTransform.ts
> [102/0]: src/contain/util.ts
> [103/1]: ../../../usr/share/nodejs/tslib/tslib.es6.js
> 
> @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
> + export QUILT_PATCHES=debian/patches
> + quilt pop
> Removing patch debian/patches/workaround-rollup-plugin-typescript2.patch
> Restoring tsconfig.json
> 
> Now at patch debian/patches/tsc-workaround.patch
> + tsc -m ES2015 --outDir lib
> src/canvas/graphic.ts:395:9 - error TS2322: Type 'string' is not assignable to type 'GlobalCompositeOperation'.
> 
> 395         ctx.globalCompositeOperation = style.blend || DEFAULT_COMMON_STYLE.blend;
>             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> Found 1 error in src/canvas/graphic.ts:395
> 
> dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned exit code 2
> make: *** [debian/rules:8: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2022/04/12/node-zrender_5.3.1+dfsg-1_unstable.log

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