#1146326 node-rollup-plugin-postcss: FTBFS with node-babel 8

#1146326#5
Date:
2026-08-31 12:05:04 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

A wiki page discussing possible solutions is available here:

https://wiki.debian.org/Javascript/KnownPatches?pow_referer=#node-babel7_8

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-rollup-plugin-postcss, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
   dh_auto_test --buildsystem=nodejs_no_lerna
	mkdir -p node_modules
	ln -s ../. node_modules/rollup-plugin-postcss
	/bin/sh -ex debian/tests/pkg-js/test
+ set -e
+ mktemp -d
+ tmpdir=/tmp/tmp.t66CYP5ryU
+ pwd
+ srcdir=/<<PKGBUILDDIR>>
+ trap rm -rf "$tmpdir" EXIT
+ cp -a test /tmp/tmp.t66CYP5ryU/
+ cp package.json /tmp/tmp.t66CYP5ryU/
+ node - /tmp/tmp.t66CYP5ryU/test/index.test.js
+ cd /tmp/tmp.t66CYP5ryU
+ NODE_PATH=/<<PKGBUILDDIR>>/node_modules:/usr/share/nodejs ROLLUP_POSTCSS_TEST=true jest test/index.test.js
discarding unknown file input sourcemap Error: ENOENT: no such file or directory, open '/usr/share/nodejs/rollup/dist/rollup.js.map'
    at Object.readFileSync (node:fs:484:20)
    at readInputSourceMapFile (file:///usr/share/nodejs/@babel/core/lib/transformation/read-input-source-map-file.js:65:32)
    at normalizeFile (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2695:24)
    at normalizeFile.next (<anonymous>)
    at run (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2772:23)
    at run.next (<anonymous>)
    at transform (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2840:17)
    at transform.next (<anonymous>)
    at evaluateSync (/usr/share/nodejs/gensync/index.js:251:28)
    at sync (/usr/share/nodejs/gensync/index.js:89:14)
    at stopHiding - secret - don't use this - v1 (file:///usr/share/nodejs/@babel/core/lib/errors/rewrite-stack-trace.js:37:12)
    at transformSync (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2859:52)
    at Object.process (/usr/share/nodejs/babel-jest/build/index.js:163:57)
    at ScriptTransformer.transformSource (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:400:31)
    at ScriptTransformer._transformAndBuildScript (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:497:40)
    at ScriptTransformer.transform (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:536:19)
    at Runtime.transformFile (/usr/share/nodejs/jest-runtime/build/index.js:1199:53)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1141:34)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Object.<anonymous> (/tmp/tmp.t66CYP5ryU/test/index.test.js:3:1)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at jestAdapter (/usr/share/nodejs/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:72:13)
    at runTestInternal (/usr/share/nodejs/jest-runner/build/runTest.js:262:16)
    at runTest (/usr/share/nodejs/jest-runner/build/runTest.js:322:7) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/share/nodejs/rollup/dist/rollup.js.map'
}
discarding unknown file input sourcemap Error: ENOENT: no such file or directory, open '/usr/share/nodejs/rollup/dist/shared/rollup.js.map'
    at Object.readFileSync (node:fs:484:20)
    at readInputSourceMapFile (file:///usr/share/nodejs/@babel/core/lib/transformation/read-input-source-map-file.js:65:32)
    at normalizeFile (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2695:24)
    at normalizeFile.next (<anonymous>)
    at run (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2772:23)
    at run.next (<anonymous>)
    at transform (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2840:17)
    at transform.next (<anonymous>)
    at evaluateSync (/usr/share/nodejs/gensync/index.js:251:28)
    at sync (/usr/share/nodejs/gensync/index.js:89:14)
    at stopHiding - secret - don't use this - v1 (file:///usr/share/nodejs/@babel/core/lib/errors/rewrite-stack-trace.js:37:12)
    at transformSync (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2859:52)
    at Object.process (/usr/share/nodejs/babel-jest/build/index.js:163:57)
    at ScriptTransformer.transformSource (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:400:31)
    at ScriptTransformer._transformAndBuildScript (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:497:40)
    at ScriptTransformer.transform (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:536:19)
    at Runtime.transformFile (/usr/share/nodejs/jest-runtime/build/index.js:1199:53)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1141:34)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Module.Object.<anonymous> (/usr/share/nodejs/rollup/dist/rollup.js:14:16)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Object.<anonymous> (/tmp/tmp.t66CYP5ryU/test/index.test.js:3:1)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at jestAdapter (/usr/share/nodejs/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:72:13)
    at runTestInternal (/usr/share/nodejs/jest-runner/build/runTest.js:262:16)
    at runTest (/usr/share/nodejs/jest-runner/build/runTest.js:322:7) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/share/nodejs/rollup/dist/shared/rollup.js.map'
}
discarding unknown file input sourcemap Error: ENOENT: no such file or directory, open '/usr/share/nodejs/rollup/dist/shared/watch-proxy.js.map'
    at Object.readFileSync (node:fs:484:20)
    at readInputSourceMapFile (file:///usr/share/nodejs/@babel/core/lib/transformation/read-input-source-map-file.js:65:32)
    at normalizeFile (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2695:24)
    at normalizeFile.next (<anonymous>)
    at run (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2772:23)
    at run.next (<anonymous>)
    at transform (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2840:17)
    at transform.next (<anonymous>)
    at evaluateSync (/usr/share/nodejs/gensync/index.js:251:28)
    at sync (/usr/share/nodejs/gensync/index.js:89:14)
    at stopHiding - secret - don't use this - v1 (file:///usr/share/nodejs/@babel/core/lib/errors/rewrite-stack-trace.js:37:12)
    at transformSync (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2859:52)
    at Object.process (/usr/share/nodejs/babel-jest/build/index.js:163:57)
    at ScriptTransformer.transformSource (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:400:31)
    at ScriptTransformer._transformAndBuildScript (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:497:40)
    at ScriptTransformer.transform (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:536:19)
    at Runtime.transformFile (/usr/share/nodejs/jest-runtime/build/index.js:1199:53)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1141:34)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Module.Object.<anonymous> (/usr/share/nodejs/rollup/dist/rollup.js:15:20)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Object.<anonymous> (/tmp/tmp.t66CYP5ryU/test/index.test.js:3:1)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at jestAdapter (/usr/share/nodejs/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:72:13)
    at runTestInternal (/usr/share/nodejs/jest-runner/build/runTest.js:262:16)
    at runTest (/usr/share/nodejs/jest-runner/build/runTest.js:322:7) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/share/nodejs/rollup/dist/shared/watch-proxy.js.map'
}
discarding unknown file input sourcemap Error: ENOENT: no such file or directory, open '/usr/share/nodejs/rollup/dist/shared/fsevents-importer.js.map'
    at Object.readFileSync (node:fs:484:20)
    at readInputSourceMapFile (file:///usr/share/nodejs/@babel/core/lib/transformation/read-input-source-map-file.js:65:32)
    at normalizeFile (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2695:24)
    at normalizeFile.next (<anonymous>)
    at run (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2772:23)
    at run.next (<anonymous>)
    at transform (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2840:17)
    at transform.next (<anonymous>)
    at evaluateSync (/usr/share/nodejs/gensync/index.js:251:28)
    at sync (/usr/share/nodejs/gensync/index.js:89:14)
    at stopHiding - secret - don't use this - v1 (file:///usr/share/nodejs/@babel/core/lib/errors/rewrite-stack-trace.js:37:12)
    at transformSync (file:///usr/share/nodejs/@babel/core/lib/index-shared.js:2859:52)
    at Object.process (/usr/share/nodejs/babel-jest/build/index.js:163:57)
    at ScriptTransformer.transformSource (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:400:31)
    at ScriptTransformer._transformAndBuildScript (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:497:40)
    at ScriptTransformer.transform (/usr/share/nodejs/@jest/transform/build/ScriptTransformer.js:536:19)
    at Runtime.transformFile (/usr/share/nodejs/jest-runtime/build/index.js:1199:53)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1141:34)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Object.<anonymous> (/usr/share/nodejs/rollup/dist/shared/watch-proxy.js:13:26)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Module.Object.<anonymous> (/usr/share/nodejs/rollup/dist/rollup.js:15:20)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at Runtime.requireModuleOrMock (/usr/share/nodejs/jest-runtime/build/index.js:868:21)
    at Object.<anonymous> (/tmp/tmp.t66CYP5ryU/test/index.test.js:3:1)
    at Runtime._execModule (/usr/share/nodejs/jest-runtime/build/index.js:1177:24)
    at Runtime._loadModule (/usr/share/nodejs/jest-runtime/build/index.js:848:12)
    at Runtime.requireModule (/usr/share/nodejs/jest-runtime/build/index.js:747:12)
    at jestAdapter (/usr/share/nodejs/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:72:13)
    at runTestInternal (/usr/share/nodejs/jest-runner/build/runTest.js:262:16)
    at runTest (/usr/share/nodejs/jest-runner/build/runTest.js:322:7) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/usr/share/nodejs/rollup/dist/shared/fsevents-importer.js.map'
}
FAIL test/index.test.js
  ● Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/configuration
    For information about custom transformations, see:
https://jestjs.io/docs/code-transformation

    Details:

    /<<PKGBUILDDIR>>/dist/index.js:129
    import path from 'path';
    ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1227 |     try {
      1228 |       const scriptFilename = this._resolver.isCoreModule(filename) ? `jest-nodejs-core-${filename}` : filename;
    > 1229 |       return new (_vm().Script)(this.wrapCodeInModuleWrapper(scriptSource), {
           |               ^
      1230 |         columnOffset: this._fileTransforms.get(filename)?.wrapperLength,
      1231 |         displayErrors: true,
      1232 |         filename: scriptFilename,

      at Runtime.createScriptFromCode (../../usr/share/nodejs/jest-runtime/build/index.js:1229:14)
      at Object.<anonymous> (test/index.test.js:4:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.541 s
Ran all test suites matching /test\/index.test.js/i.
+ rm -rf /tmp/tmp.t66CYP5ryU
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------