On Sat, Apr 25, 2020 at 11:35 am, Xavier <y...@debian.org> wrote:
Le 25/04/2020 à 10:01, y...@debian.org a écrit :
 Package: node-postcss
 Severity: important

 This package fails to build with node-gulp-babel 8.0.0 (available in
 experimental dist). Maybe just a missing dependency to a node-babel
 (6) package.

Error is:
[09:35:07] 'compile' errored after 320 ms
[09:35:07] BrowserslistError in plugin "gulp-babel"
Message:
    [BABEL] /<<PKGBUILDDIR>>/lib/at-rule.es6: Unknown browser query
`dead` (While processing:
"/usr/share/nodejs/@babel/preset-env/lib/index.js")
[09:35:07] 'build:lib' errored after 322 ms
[09:35:07] 'build' errored after 337 ms
[09:35:07] The following tasks did not complete: build:docs, build:package
[09:35:07] Did you forget to signal async completion?

This seems to be a bug in node-babel7 itself which needs node-browserslist >= 4.6. I have fixed in in node-babel7 babel7 branch.

Now node-postcss master branch gulp build workds, but require seems to fail because some files are not transpiled.

make[1]: Entering directory '/<<PKGBUILDDIR>>'
gulp build
[09:21:05] Local modules not found in /<<PKGBUILDDIR>>
[09:21:05] Try running: npm install
[09:21:05] Using globally installed gulp
[09:21:06] Using gulpfile /<<PKGBUILDDIR>>/gulpfile.js
[09:21:06] Starting 'build'...
[09:21:06] Starting 'clean'...
[09:21:06] Finished 'clean' after 28 ms
[09:21:06] Starting 'build:lib'...
[09:21:06] Starting 'build:docs'...
[09:21:06] Starting 'build:package'...
[09:21:06] Starting 'compile'...
[09:21:07] Finished 'build:package' after 1 s
[09:21:08] Finished 'compile' after 2.25 s
[09:21:08] Starting '<anonymous>'...
[09:21:08] Finished '<anonymous>' after 65 ms
[09:21:08] Finished 'build:lib' after 2.32 s
[09:21:08] Finished 'build:docs' after 2.32 s
[09:21:08] Finished 'build' after 2.35 s
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
  dh_auto_test --buildsystem=nodejs
        /usr/bin/node -e require\(\"./.\"\)
internal/modules/cjs/loader.js:638
   throw err;
   ^

Error: Cannot find module './terminal-highlight'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
   at Function.Module._load (internal/modules/cjs/loader.js:562:25)
   at Module.require (internal/modules/cjs/loader.js:692:17)
   at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/<<PKGBUILDDIR>>/lib/css-syntax-error.js:10:49)
   at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
   at Module.load (internal/modules/cjs/loader.js:653:32)
   at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
   at Function.Module._load (internal/modules/cjs/loader.js:585:3)
dh_auto_test: error: /usr/bin/node -e require\(\"./.\"\) returned exit code 1

Reply via email to