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.

Conflict order of styles

See original GitHub issue

Good day, we moved from 2.6 webpack to 4.28.4. It’s a big bump and of course we migrated from old css plugin to new mini-css-extract-plugin. However, it doesn’t bundle css properly anymore, which causes wrong render We have dozens of the next warnings. Seems like something is wrong with optimization of chunks of css

WARNING in chunk bootstrap [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/1.scss
 * css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/2.scss
 * css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/3.scss
 * css ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/styles/components/4.scss

rule is

      {
        test: /\.s?css$/,
        use: [
          MiniCssExtractPlugin.loader,
          'css-loader',
          'sass-loader'
        ]
      }

optimization looks like

    optimization: {
      splitChunks: {
        name: 'bootstrap',
        minChunks: Infinity,
        cacheGroups: {
          bootstrap: {
            filename: '[name].[chunkhash].js'
          },
          styles: {
            name: 'styles',
            test: /\.css$/,
            chunks: 'all',
            enforce: true
          }
        }
      }
    },

plugins is

new MiniCssExtractPlugin({ filename: 'style.css' })

if I replace MiniCssExtractPlugin.loaderwith style-loader, it seems to be switched off and error no longer appears, except I have no static/style.css file generated and all styles become inlined

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

49reactions
alexander-akaitcommented, Apr 24, 2019

It is just warning you can ignore this

29reactions
ajthocommented, Feb 2, 2021

This is still an issue, why was it closed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

11.2.0: Conflict Management Styles - myText CNM
In this section, we will describe five approaches for managing conflict: competing, avoiding, accommodating, compromising, and collaborating. Each of these ...
Read more >
Understanding Conflict Handling Styles - UT System
Understanding Conflict Handling Styles · Competing. Value of own issue/goal: High Value of relationship: Low · Accommodating. Value of own issue/goal: Low Value ......
Read more >
What's Your Conflict Management Style? - Walden University
Five Major Conflict Management Styles* · Collaborating Style: A combination of being assertive and cooperative, those who collaborate attempt to ...
Read more >
5 Most Effective Conflict Management Styles (+When To Use ...
5 conflict management styles · Accommodating · Avoiding · Compromising · Collaborating · Competing · Communication tips for any situation.
Read more >
Understanding the 5 Conflict Styles for Different Situations and ...
There are five conflict management styles: avoiding, accommodating, compromising, collaborating, and competing. Some are better than others for ...
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