[Pkg-javascript-devel] Bug#1021038: node-jest-worker: requires jest-util which is in jest package
Dmitry Shachnev
mitya57 at debian.org
Fri Sep 30 21:33:19 BST 2022
Package: node-jest-worker
Version: 29.1.1~ds1+~cs70.47.20-2
Severity: important
Dear Maintainer,
When building qtwebengine, I get this error:
Error: Cannot find module 'jest-util'
Require stack:
- /usr/share/nodejs/jest-worker/build/workers/processChild.js
at Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Module._load (node:internal/modules/cjs/loader:833:27)
at Module.require (node:internal/modules/cjs/loader:1051:19)
at require (node:internal/modules/cjs/helpers:103:18)
at _jestUtil (/usr/share/nodejs/jest-worker/build/workers/processChild.js:4:16)
at execFunction (/usr/share/nodejs/jest-worker/build/workers/processChild.js:154:11)
at execHelper (/usr/share/nodejs/jest-worker/build/workers/processChild.js:132:5)
at execMethod (/usr/share/nodejs/jest-worker/build/workers/processChild.js:136:5)
at process.messageListener (/usr/share/nodejs/jest-worker/build/workers/processChild.js:48:7)
at process.emit (node:events:513:28) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/share/nodejs/jest-worker/build/workers/processChild.js' ]
}
qtwebengine uses node-jest-worker (indirectly, via node-rollup-plugin-terser).
And /usr/share/nodejs/jest-worker/build/workers/processChild.js which is part
of node-jest-worker has this code:
function _jestUtil() {
const data = require("jest-util");
_jestUtil = function () {
return data;
};
return data;
}
However, jest-util module is in jest binary package, but node-js-worker does
not depend on jest so it was not installed.
I believe jest-util needs to be made a separate binary package, or moved to
node-jest-worker.
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220930/c780724e/attachment.sig>
More information about the Pkg-javascript-devel
mailing list