[Pkg-javascript-devel] Bug#1007858: node-lodash: FTBFS with nodejs experimental/14.19.0

Yadd yadd at debian.org
Sat Mar 19 07:42:09 GMT 2022


On 19/03/2022 08:38, Yadd wrote:
> On 19/03/2022 08:11, Yadd wrote:
>> On 17/03/2022 19:21, Jérémy Lal wrote:
>>> Source: node-lodash
>>> Version: 4.17.21+dfsg+~cs8.31.196.20210220-2
>>> Severity: important
>>> Tags: ftbfs
>>>
>>> This package fails to rebuild. Build log is attached.
>>
>> The real problem comes from uglify-js call. Build works fine with 
>> uglifyjs 2 (as required by node-locash/package.json) but fails with 
>> uglify-js 3. Here is the real error:
>>
>>    error: JS_Parse_Error [SyntaxError]: Invalid flags supplied to 
>> RegExp constructor 'node'
>>        at JS_Parse_Error.get (eval at <anonymous> 
>> (/build/node-lodash-wQJpO3/node-lodash-4.17.21+dfsg+~cs8.31.198.20210220/node_modules/uglify-js/tools/node.js:18:1), 
>> <anonymous>:63:23)
>>        at formatError (internal/util/inspect.js:1149:38)
>>        at formatRaw (internal/util/inspect.js:919:14)
>>        at formatValue (internal/util/inspect.js:774:10)
>>        at formatProperty (internal/util/inspect.js:1660:11)
>>        at formatRaw (internal/util/inspect.js:987:9)
>>        at formatValue (internal/util/inspect.js:774:10)
>>        at inspect (internal/util/inspect.js:319:10)
>>        at formatWithOptionsInternal (internal/util/inspect.js:1979:40)
>>        at formatWithOptions (internal/util/inspect.js:1861:10) {
>>      filename: '0',
>>      line: 1,
>>      col: 0,
>>      pos: 0
> 
> For now, I dropped internal minifier and pushed result to experimental. 
> This may break some builds: minified files have to be generated separately.
> 
> Can someone else have a look at this ?

By the way, build fails also with webpack 5



More information about the Pkg-javascript-devel mailing list