I am using webpack v5.89.0 and trying to transpile a modified version of the higlass-pileup project to use newer webpack and babel resources, so that it can be processed with current versions of Node.js.
I am using the workaround described here to get the worker script generated.
The error message I get is as follows:
% npm run build
npm run build
> higlass-pileup@1.5.0 build
> npm run build-es && webpack --mode production
> higlass-pileup@1.5.0 build-es
> rm -rf ./es/* && npx babel ./src/ --out-dir ./es/ --env-name esm
Successfully compiled 6 files with Babel (811ms).
/Users/areynolds/Developer/Test/higlass-pileup/webpack.config.js:23
throw Error(
^
Error: Waited too long for the target file (dist/worker.js) to be generated. Exiting.
at Timeout.poll [as _onTimeout] (/Users/areynolds/Developer/Test/higlass-pileup/webpack.config.js:23:17)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Node.js v17.9.1
Increasing the timeout value for WaitPlugin does not appear to change this result (other than taking longer to get to the error message.
Here are my customized resource files, which I believe to be relevant to the problem:
I am using
webpack
v5.89.0 and trying to transpile a modified version of thehiglass-pileup
project to use newerwebpack
andbabel
resources, so that it can be processed with current versions of Node.js.I am using the workaround described here to get the worker script generated.
The error message I get is as follows:
Increasing the timeout value for
WaitPlugin
does not appear to change this result (other than taking longer to get to the error message.Here are my customized resource files, which I believe to be relevant to the problem:
package.json
babel.config.json
webpack.config.js
Are there any thoughts on what I am missing in applying the workaround? I am happy to send more details, as needed. Thanks for any guidance.