cli: bump style-loader and mini-css-extract-plugin to latest major versions
See original GitHub issueExpected Behavior
Should be able to bump these two without issues
Current Behavior
Bumping them results in the following error when building:
Error: Failed to compile.
chunk kyma-project [initial]
static/module-kyma-project.31d3f200.js
Conflict: Multiple chunks emit assets to the same filename static/module-kyma-project.31d3f200.js (chunks 14 and 14)
And when including a content hash in the filename to ensure uniqueness, you get this:
Error: Failed to compile.
static/module-kyma-project.1e9dec32.ab58b93b.js from Terser
Unexpected token: punc (.) [webpack://./node_modules/@kyma-project/asyncapi-react/lib/styles/fiori.css:13,0][static/module-kyma-project.1e9dec32.ab58b93b.js:13,0]
Possible Solution
Seems like duplicate assets are emitted, possibly one CSS and one JS one, but not sure exactly what’s going on.
Steps to Reproduce
- Bump
mini-css-extract-pluginto1.3.4andstyle-loaderto2.0.0 - Run
yarn buildinpackages/app
Context
https://github.com/backstage/backstage/pull/4139
Your Environment
- NodeJS Version (v12): v12.16.3
- Operating System and Version (e.g. Ubuntu 14.04): MacOS 10.15.7
- Browser Information: N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
MiniCssExtractPlugin - webpack
This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS...
Read more >mini-css-extract-plugin WARNING in chunk ... - Stack Overflow
It can easily become an annoying bug! I can see it being reported in every framework -- e.g. in issue #5372 in create-react-app, ......
Read more >A tale of Webpack 4 and how to finally configure it in the right ...
This is a major reason why the configuration files are so different: with a different version combination of the same tools things might ......
Read more >webpack/webpack - Gitter
Hi have installed the latest versions of webpack, webpack-cli, and webpack-dev-server locally and globally. Cli commands 'webpack', 'webpack info' and ...
Read more >A mostly complete guide to webpack 5 (2020)
Today CLI tools as create-react-app or Vue cli abstract away most of ... To start off with webpack create a new folder and...
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

Yep!
Just as a reference, maybe for later: https://github.com/backstage/backstage/compare/master...SDA-SE:feat/async-api-web-component