webpack-contrib / thread-loader

Runs the following loaders in a worker pool
MIT License
1.12k stars 68 forks source link

Cannot read property 'contextify' of undefined at PoolWorker.fromErrorObj #215

Open IsDyh01 opened 2 weeks ago

IsDyh01 commented 2 weeks ago

Expected Behavior

I get this error when I use thread-loader before I use the css loader

Actual Behavior

Code

// webpack.config.js
// If your code blocks are over 20 lines, please paste a link to a gist
// (https://gist.github.com).
config.module.rule('css').oneOf('css-modules').
            use('thread-loader').loader('thread-loader').tap(options => {
                return {
                    ...options,
                    workers: 2,
                };
            }).before('extract-css-loader');
// additional code, HEY YO remove this block if you don't need it

How Do We Reproduce?

alexander-akait commented 1 week ago

I recommend do not use thread-loader and use https://webpack.js.org/configuration/cache/