mini-css-extract-plugin and worker-loader fail webpack child compilation
See original GitHub issueCurrently 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:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Possible alt with no css styles https://www.npmjs.com/package/react-syntax-highlighter
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