[Pkg-javascript-devel] Bug#1010888: grunt: autopkgtest failure with node-dateformat 5.0 in experimental - change the require of dateformat.js to a dynamic import() which is available in all CommonJS modules
Pirate Praveen
praveen at onenetbeyond.org
Thu May 12 10:54:33 BST 2022
Package: grunt
Version: 1.5.2-2
Severity: important
While trying to update node-dateformat to 5.0 (currently in
experimental) autopkgtest of grunt failed with this error.
+ grunt test
/usr/share/nodejs/grunt/lib/grunt/template.js:9
template.date = require('dateformat');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module
/usr/share/nodejs/dateformat/lib/dateformat.js from
/usr/share/nodejs/grunt/lib/grunt/template.js not supported.
Instead change the require of dateformat.js in
/usr/share/nodejs/grunt/lib/grunt/template.js to a dynamic import()
which is available in all CommonJS modules.
at Object.<anonymous>
(/usr/share/nodejs/grunt/lib/grunt/template.js:9:17)
at gRequire (/usr/share/nodejs/grunt/lib/grunt.js:32:24)
at Object.<anonymous> (/usr/share/nodejs/grunt/lib/grunt.js:43:1)
at Liftoff.<anonymous> (/usr/share/nodejs/grunt-cli/bin/grunt:72:21)
at Liftoff.execute (/usr/share/nodejs/liftup/index.js:202:12)
at module.exports (/usr/share/nodejs/flagged-respawn/index.js:51:3)
at Liftoff.<anonymous> (/usr/share/nodejs/liftup/index.js:192:5)
at Liftoff.<anonymous> (/usr/share/nodejs/liftup/index.js:155:7) {
code: 'ERR_REQUIRE_ESM'
}
Full build log attached
Please fix grunt to work with node-dateformat 5.0 so we can upload this
version to unstable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grunt.log
Type: text/x-log
Size: 332613 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220512/08f6d639/attachment.bin>
More information about the Pkg-javascript-devel
mailing list