[Pkg-javascript-devel] Bug#991651: twitter-bootstrap4: FTBFS: Browserslist: caniuse-lite is outdated. Please run: npx browserslist at latest --update-db

Lucas Nussbaum lucas at debian.org
Thu Jul 29 16:19:34 BST 2021


Source: twitter-bootstrap4
Version: 4.5.2+dfsg1-6
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210728 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> mkdir -p dist/css dist/js dist/tmp
> sassc --sourcemap=auto scss/bootstrap.scss dist/tmp/bootstrap.css
> sassc --sourcemap=auto scss/bootstrap-grid.scss dist/tmp/bootstrap-grid.css
> sassc --sourcemap=auto scss/bootstrap-reboot.scss dist/tmp/bootstrap-reboot.css
> node debian/postcss.js
> 
>   Replace Autoprefixer browsers option to Browserslist config.
>   Use browserslist key in package.json or .browserslistrc file.
> 
>   Using browsers option can cause errors. Browserslist config can
>   be used for Babel, Autoprefixer, postcss-normalize and other tools.
> 
>   If you really need to use option, rename it to overrideBrowserslist.
> 
>   Learn more at:
>   https://github.com/browserslist/browserslist#readme
>   https://twitter.com/browserslist
> 
> 
> Browserslist: caniuse-lite is outdated. Please run:
> npx browserslist at latest --update-db
> 
> Why you should do it regularly:
> https://github.com/browserslist/browserslist#browsers-data-updating
> (node:16484) UnhandledPromiseRejectionWarning: BrowserslistError: Unknown browser query `> 1%`. Maybe you are using old Browserslist or made typo in query.
>     at unknownQuery (/usr/share/nodejs/browserslist/index.js:285:10)
>     at /usr/share/nodejs/browserslist/index.js:372:11
>     at Array.reduce (<anonymous>)
>     at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
>     at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
>     at Browsers.parse (/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
>     at new Browsers (/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
>     at loadPrefixes (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
>     at Object.prepare (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
>     at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
> (node:16484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
> (node:16484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
> 
>   Replace Autoprefixer browsers option to Browserslist config.
>   Use browserslist key in package.json or .browserslistrc file.
> 
>   Using browsers option can cause errors. Browserslist config can
>   be used for Babel, Autoprefixer, postcss-normalize and other tools.
> 
>   If you really need to use option, rename it to overrideBrowserslist.
> 
>   Learn more at:
>   https://github.com/browserslist/browserslist#readme
>   https://twitter.com/browserslist
> 
> 
> (node:16484) UnhandledPromiseRejectionWarning: BrowserslistError: Unknown browser query `> 1%`. Maybe you are using old Browserslist or made typo in query.
>     at unknownQuery (/usr/share/nodejs/browserslist/index.js:285:10)
>     at /usr/share/nodejs/browserslist/index.js:372:11
>     at Array.reduce (<anonymous>)
>     at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
>     at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
>     at Browsers.parse (/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
>     at new Browsers (/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
>     at loadPrefixes (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
>     at Object.prepare (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
>     at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
> (node:16484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
> 
>   Replace Autoprefixer browsers option to Browserslist config.
>   Use browserslist key in package.json or .browserslistrc file.
> 
>   Using browsers option can cause errors. Browserslist config can
>   be used for Babel, Autoprefixer, postcss-normalize and other tools.
> 
>   If you really need to use option, rename it to overrideBrowserslist.
> 
>   Learn more at:
>   https://github.com/browserslist/browserslist#readme
>   https://twitter.com/browserslist
> 
> 
> (node:16484) UnhandledPromiseRejectionWarning: BrowserslistError: Unknown browser query `> 1%`. Maybe you are using old Browserslist or made typo in query.
>     at unknownQuery (/usr/share/nodejs/browserslist/index.js:285:10)
>     at /usr/share/nodejs/browserslist/index.js:372:11
>     at Array.reduce (<anonymous>)
>     at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
>     at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
>     at Browsers.parse (/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
>     at new Browsers (/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
>     at loadPrefixes (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
>     at Object.prepare (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
>     at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
> (node:16484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
> sassc --sourcemap=auto --style compressed dist/tmp/bootstrap.css dist/css/bootstrap.min.css
> sassc --sourcemap=auto --style compressed dist/tmp/bootstrap-grid.css dist/css/bootstrap-grid.min.css
> sassc --sourcemap=auto --style compressed dist/tmp/bootstrap-reboot.css dist/css/bootstrap-reboot.min.css
> rm -rf dist/tmp
> NODE_PATH=node_modules node build/build-plugins.js
> Building Alert plugin...
> Building Button plugin...
> Building Carousel plugin...
> Building Collapse plugin...
> Building Dropdown plugin...
> Building Modal plugin...
> Building Popover plugin...
> Building ScrollSpy plugin...
> Building Tab plugin...
> Building Toast plugin...
> Building Tooltip plugin...
> Building Util plugin...
> Browserslist: caniuse-lite is outdated. Please run:
> npx browserslist at latest --update-db
> 
> Why you should do it regularly:
> https://github.com/browserslist/browserslist#browsers-data-updating
> Error [BrowserslistError]: [BABEL] /<<PKGBUILDDIR>>/js/src/alert.js: Unknown browser query `>= 1%`. Maybe you are using old Browserslist or made typo in query. (While processing: "/usr/share/nodejs/@babel/preset-env/lib/index.js")
>     at unknownQuery (/usr/share/nodejs/browserslist/index.js:285:10)
>     at /usr/share/nodejs/browserslist/index.js:372:11
>     at Array.reduce (<anonymous>)
>     at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
>     at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
>     at getTargets (/usr/share/nodejs/@babel/helper-compilation-targets/lib/index.js:204:48)
>     at /usr/share/nodejs/@babel/preset-env/lib/index.js:258:57
>     at /usr/share/nodejs/@babel/helper-plugin-utils/lib/index.js:19:12
>     at /usr/share/nodejs/@babel/core/lib/config/full.js:211:14
>     at Generator.next (<anonymous>) {
>   browserslist: true,
>   code: 'PLUGIN_ERROR',
>   plugin: 'babel',
>   hook: 'transform',
>   id: '/<<PKGBUILDDIR>>/js/src/alert.js',
>   watchFiles: [
>     '/<<PKGBUILDDIR>>/js/src/alert.js'
>   ]
> }
> make[1]: *** [debian/rules:16: override_dh_auto_build] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2021/07/28/twitter-bootstrap4_4.5.2+dfsg1-6_testing.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.

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