[Pkg-javascript-devel] Bug#918935: Bug#918935: node-browserify-lite FTBFS: Error: Cannot find module '../tools/exit'
Xavier
yadd at debian.org
Thu Jan 10 18:41:47 GMT 2019
Le 10/01/2019 à 19:34, Adrian Bunk a écrit :
> Control: reassign -1 uglifyjs 3.4.9-2
> Control: retitle -1 uglifyjs: Error: Cannot find module '../tools/exit'
> Control: affects -1 src:node-browserify-lite
>
> On Thu, Jan 10, 2019 at 08:04:46PM +0200, Adrian Bunk wrote:
>> Source: node-browserify-lite
>> Version: 0.5.0-3
>> Severity: serious
>> Tags: ftbfs
>>
>> https://buildd.debian.org/status/fetch.php?pkg=node-browserify-lite&arch=all&ver=0.5.0-3&stamp=1547086740&raw=0
>>
>> ...
>> debian/rules override_dh_auto_build
>> make[1]: Entering directory '/<<PKGBUILDDIR>>'
>> NODE_PATH=. /<<PKGBUILDDIR>>/cli.js debian/examples.d/main.js --outfile debian/examples.d/bundle.js
>> cd debian/examples.d/ && uglifyjs bundle.js -m --verbose --source-map bundle.compress.js.map -o bundle.compress.js
>> internal/modules/cjs/loader.js:583
>> throw err;
>> ^
>>
>> Error: Cannot find module '../tools/exit'
>> at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
>> at Function.Module._load (internal/modules/cjs/loader.js:507:25)
>> at Module.require (internal/modules/cjs/loader.js:637:17)
>> at require (internal/modules/cjs/helpers.js:22:18)
>> at Object.<anonymous> (/usr/lib/nodejs/uglify-js/bin/uglifyjs:6:1)
>> at Module._compile (internal/modules/cjs/loader.js:689:30)
>> at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
>> at Module.load (internal/modules/cjs/loader.js:599:32)
>> at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
>> at Function.Module._load (internal/modules/cjs/loader.js:530:3)
>> make[1]: *** [debian/rules:26: debian/examples.d/bundle.compress.js] Error 1
>
> That does actually look like a bug in the new uglifyfs.
>
> cu
> Adrian
I tried to reproduce but have different errors related to debian/examples* :
NODE_PATH=. /<<PKGBUILDDIR>>/cli.js debian/examples.d/main.js
--standalone 'example' --outfile debian/examples.d/standalone.js
cd debian/examples.d/ && uglifyjs bundle.js -m --verbose --source-map
bundle.compress.js.map -o bundle.compress.js
cd debian/examples.d/ && uglifyjs bundle.js --verbose --source-map
bundle.min.js.map -o bundle.min.js
cd debian/examples.d/ && uglifyjs standalone.js --verbose --source-map
standalone.min.js.map -o standalone.min.js
cd debian/examples.d/ && uglifyjs standalone.js -m --verbose
--source-map standalone.compress.js.map -o standalone.compress.js
Supported options:Supported options:Supported options:
content null
filename null
includeSources false
root null
url null
content null
filename null
includeSources false
root null
url null
content null
filename null
includeSources false
root null
url nullERROR: `bundle.compress.js.map` is not a supported
option
at DefaultsError.get (eval at <anonymous>
(/usr/lib/nodejs/uglify-js/tools/node.js:20:1), <anonymous>:71:23)
at fatal (/usr/lib/nodejs/uglify-js/bin/uglifyjs:291:53)
at run (/usr/lib/nodejs/uglify-js/bin/uglifyjs:235:9)
at Object.<anonymous> (/usr/lib/nodejs/uglify-js/bin/uglifyjs:160:5)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
ERROR: `standalone.min.js.map` is not a supported option
at DefaultsError.get (eval at <anonymous>
(/usr/lib/nodejs/uglify-js/tools/node.js:20:1), <anonymous>:71:23)
at fatal (/usr/lib/nodejs/uglify-js/bin/uglifyjs:291:53)
at run (/usr/lib/nodejs/uglify-js/bin/uglifyjs:235:9)
at Object.<anonymous> (/usr/lib/nodejs/uglify-js/bin/uglifyjs:160:5)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
make[1]: *** [debian/rules:26: debian/examples.d/bundle.compress.js] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [debian/rules:23: debian/examples.d/standalone.min.js] Error 1
ERROR: `bundle.min.js.map` is not a supported option
at DefaultsError.get (eval at <anonymous>
(/usr/lib/nodejs/uglify-js/tools/node.js:20:1), <anonymous>:71:23)
at fatal (/usr/lib/nodejs/uglify-js/bin/uglifyjs:291:53)
at run (/usr/lib/nodejs/uglify-js/bin/uglifyjs:235:9)
at Object.<anonymous> (/usr/lib/nodejs/uglify-js/bin/uglifyjs:160:5)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
make[1]: *** [debian/rules:23: debian/examples.d/bundle.min.js] Error 1
Supported options:
content null
filename null
includeSources false
root null
url null
ERROR: `standalone.compress.js.map` is not a supported option
at DefaultsError.get (eval at <anonymous>
(/usr/lib/nodejs/uglify-js/tools/node.js:20:1), <anonymous>:71:23)
at fatal (/usr/lib/nodejs/uglify-js/bin/uglifyjs:291:53)
at run (/usr/lib/nodejs/uglify-js/bin/uglifyjs:235:9)
at Object.<anonymous> (/usr/lib/nodejs/uglify-js/bin/uglifyjs:160:5)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
make[1]: *** [debian/rules:26: debian/examples.d/standalone.compress.js]
Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build] Error 2
More information about the Pkg-javascript-devel
mailing list