[Pkg-javascript-devel] Bug#1001683: node-babel-loader: FTBFS with webpack5: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation

Caleb Adepitan calebpitan at gmail.com
Tue Dec 14 08:47:30 GMT 2021


Source: node-babel-loader

Version: 8.2.3-1

Severity: important

Justification: ftbfs

Tags: ftbfs

User: pkg-javascript-devel at alioth-lists.debian.net

Usertags: webpack5

Hi,

We are starting to build against webpack5 in experimental and the 
package needed for local build is webpack and node-webpack-source from 
experimental.
During a test rebuild, node-babel-loader was found to fail to build in 
that situation.

Relevant part (hopefully):


# should throw error
(node:207301) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] 
DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to 
NormalModule.getCompilationHooks(compilation).loader
(node:207301) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: 
Compilation.assets will be frozen in future, all modifications are 
deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets 
after sealing the Compilation.
	Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
	Make sure to select an appropriate stage from 
Compilation.PROCESS_ASSETS_STAGE_*.

not ok 75 should be strictly equal
   ---
     operator: equal
     expected: |-
       'webpack://babel-loader/./test/fixtures/basic.js'
     actual: |-
       'webpack://babel-loader/webpack/bootstrap'
     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:123:15)
     stack: |-
       Error: should be strictly equal
           at Test.assert [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:311:54)
           at Test.bound [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:475:10)
           at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:123:15
           at FSReqCallback.readFileAfterClose [as oncomplete] 
(internal/fs/read_file_context.js:63:3)
   ...
not ok 90 should be strictly equal
   ---
     operator: equal
     expected: |-
       'webpack://babel-loader/./test/fixtures/basic.js'
     actual: |-
       'webpack://babel-loader/webpack/bootstrap'
     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:240:15)
     stack: |-
       Error: should be strictly equal
           at Test.assert [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:311:54)
           at Test.bound [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:475:10)
           at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:240:15
           at FSReqCallback.readFileAfterClose [as oncomplete] 
(internal/fs/read_file_context.js:63:3)
   ...
not ok 91 should be truthy
   ---
     operator: ok
     expected: true
     actual:   false
     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:247:15)
     stack: |-
       Error: should be truthy
           at Test.assert [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:311:54)
           at Test.bound [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.assert (/usr/share/nodejs/tape/lib/test.js:430:10)
           at Test.bound [as ok] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:247:15
           at FSReqCallback.readFileAfterClose [as oncomplete] 
(internal/fs/read_file_context.js:63:3)
   ...
not ok 98 should be strictly equal
   ---
     operator: equal
     expected: |-
       'webpack://babel-loader/./test/fixtures/basic.js'
     actual: |-
       'webpack://babel-loader/webpack/bootstrap'
     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:304:15)
     stack: |-
       Error: should be strictly equal
           at Test.assert [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:311:54)
           at Test.bound [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:475:10)
           at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:304:15
           at FSReqCallback.readFileAfterClose [as oncomplete] 
(internal/fs/read_file_context.js:63:3)
   ...
not ok 99 should be truthy
   ---
     operator: ok
     expected: true
     actual:   false
     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:311:15)
     stack: |-
       Error: should be truthy
           at Test.assert [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:311:54)
           at Test.bound [as _assert] 
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.assert (/usr/share/nodejs/tape/lib/test.js:430:10)
           at Test.bound [as ok] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:311:15
           at FSReqCallback.readFileAfterClose [as oncomplete] 
(internal/fs/read_file_context.js:63:3)
   ...


The full log is attached to this mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node-babel-loader.log
Type: text/x-log
Size: 94549 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211214/f2118d3d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x8A1B2CC96775D2D7.asc
Type: application/pgp-keys
Size: 3139 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211214/f2118d3d/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211214/f2118d3d/attachment.sig>


More information about the Pkg-javascript-devel mailing list