You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in ./entry.js
Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
ENOENT: no such file or directory, open '/Users/path-to-project/webpack-thread-loader-memfs/entry.js'
at PoolWorker.fromErrorObj (/Users/path-to-project/webpack-thread-loader-memfs/node_modules/thread-loader/dist/WorkerPool.js:262:12)
at /Users/path-to-project/webpack-thread-loader-memfs/node_modules/thread-loader/dist/WorkerPool.js:204:29
at mapSeries (/Users/path-to-project/webpack-thread-loader-memfs/node_modules/neo-async/async.js:3625:14)
at PoolWorker.onWorkerMessage (/Users/path-to-project/webpack-thread-loader-memfs/node_modules/thread-loader/dist/WorkerPool.js:170:35)
at /Users/path-to-project/webpack-thread-loader-memfs/node_modules/thread-loader/dist/WorkerPool.js:152:14
at Socket.onChunk (/Users/path-to-project/webpack-thread-loader-memfs/node_modules/thread-loader/dist/readBuffer.js:36:9)
at Socket.emit (events.js:315:20)
at Socket.Readable.read (_stream_readable.js:513:10)
at Socket.read (net.js:623:39)
at flow (_stream_readable.js:986:34)
at emitReadable_ (_stream_readable.js:577:3)
at processTicksAndRejections (internal/process/task_queues.js:83:21)
The text was updated successfully, but these errors were encountered:
I'm wondering if the fs API surface could be proxied to the parent process or at least the methods explicitly defined in the input file system wrapper.
I couldn't make thread-loader open an entry file from memory system as it yielding the following error:
ENOENT: no such file or directory, open
. I assume it has to do with the fact worker.js usesfs
https://github.com/webpack-contrib/thread-loader/blob/master/src/worker.js#L3.Would using
_compiler.inputFileSystem
or allowing an option to specify a in-memory file system in the loader allow that?Repro below (create the package.json/index.js and run
npm test
):package.json
index.js
Output
The text was updated successfully, but these errors were encountered: