question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mini-css-extract-plugin and worker-loader fail webpack child compilation

See original GitHub issue

Currently workerPolyfill.js works for the dev builds, but not for prod since it uses a different library (mini-css-extract-plugin). Need to try to get that working.

mini-css-extract-plugin and worker-loader both run as child compilers, and create-react-app doesn’t handle errors in child compilers all that well.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cmdcolincommented, Sep 29, 2020
0reactions
cmdcolincommented, Dec 8, 2020

just a random note: this does mean that plugins cannot use css styling, which does make porting sort of random third party things into view plugins for example a bit more difficult

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack, html-webpack-plugin, Error: Child compilation ...
The problem is indeed the file-loader , because it simply copies the file over. By the time html-webpack-plugin tries to write index.html it ......
Read more >
2 warnings in child compilations (use 'stats.children: true ...
Working in Vue to build a JavaScript application (Mathificent) , I get the following error; ERROR in Error: Child compilation failed: Module build...
Read more >
webpack/webpack - Gitter
I use Webpack Dev Server with Mini Css Extract Plugin and HMR. After run dev server on second build i getting 'Didn't get...
Read more >
worker-loader - webpack - JS.ORG
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
Webpack should fail when child compilation fails - GitLab
When the worker-loader child process encounters an error, as in https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/44805069, it does not produce ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found