Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Conflicting order between styles #5271

Closed
Djaler opened this issue Oct 11, 2018 · 15 comments
Closed

[Bug] Conflicting order between styles #5271

Djaler opened this issue Oct 11, 2018 · 15 comments
Labels
invalid The issue is missing information or is not a valid bug/feature request

Comments

@Djaler
Copy link
Contributor

Djaler commented Oct 11, 2018

Version and Environment
Vuetify: v1.3.0-beta.0
Vue: 2.5.17
OS: Linux

I see this warnings:

chunk cards_import~subscribers_alert [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader??ref--11-oneOf-3-1!./node_modules/postcss-loader/lib??ref--11-oneOf-3-2!./node_modules/stylus-loader??ref--11-oneOf-3-3!./node_modules/vuetify/src/stylus/components/_select.styl
 * css ./node_modules/css-loader??ref--11-oneOf-3-1!./node_modules/postcss-loader/lib??ref--11-oneOf-3-2!./node_modules/stylus-loader??ref--11-oneOf-3-3!./node_modules/vuetify/src/stylus/components/_selection-controls.styl
@KaelWD
Copy link
Member

KaelWD commented Oct 11, 2018

vuetify-loader?

@KaelWD KaelWD added S: needs reproduction The issue does not contain a valid reproduction S: need more info labels Oct 11, 2018
@Djaler
Copy link
Contributor Author

Djaler commented Oct 11, 2018

yes

@KaelWD
Copy link
Member

KaelWD commented Oct 11, 2018

Already tracked internally, and this is the wrong repo.

@KaelWD KaelWD closed this as completed Oct 11, 2018
@KaelWD KaelWD added invalid The issue is missing information or is not a valid bug/feature request and removed S: need more info S: needs reproduction The issue does not contain a valid reproduction labels Oct 11, 2018
@usercao
Copy link

usercao commented Oct 13, 2018

@KaelWD I also meet this bug when I build the project,may I ask you how this bug produce?And how to solve this problem?Thanks.

@hareku
Copy link
Contributor

hareku commented Oct 31, 2018

I have same problem.

WARNING in chunk 0 [mini-css-extract-plugin]
Conflicting order between:
 * css ./node_modules/css-loader??ref--7-oneOf-1-1!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/stylus-loader??ref--7-oneOf-1-3!./node_modules/vuetify/src/stylus/components/_text-fields.styl
 * css ./node_modules/css-loader??ref--7-oneOf-1-1!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/stylus-loader??ref--7-oneOf-1-3!./node_modules/vuetify/src/stylus/components/_textarea.styl
 * css ./node_modules/css-loader??ref--7-oneOf-1-1!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/stylus-loader??ref--7-oneOf-1-3!./node_modules/vuetify/src/stylus/components/_cards.styl

@KaelWD
Copy link
Member

KaelWD commented Oct 31, 2018

@Djaler
Copy link
Contributor Author

Djaler commented Oct 31, 2018

@KaelWD can you pleast suggest, how can I replace it with vue-style-loader?

@xhubert
Copy link

xhubert commented Nov 23, 2018

Same question.
Solved by importing those relative components used in pages.

I used the v-data-table in a certain page, but I didn't import it while initializing the Vuetify in plugin.

Hope it helpful.

@sinitsyn-alex
Copy link

@KaelWD can you pleast suggest, how can I replace it with vue-style-loader?
I use a-la-carte (css-loader, style-loader, stylus, stylus-loader, vuetify-loader)

@Djaler
Copy link
Contributor Author

Djaler commented Sep 10, 2019

@KaelWD can you help us?

@ocavue
Copy link

ocavue commented Oct 16, 2019

If you are using Vue CLI v3, add the code below to vue.config.js can ignore this error.

// vue.config.js
module.exports = {
    css: {
        extract: { ignoreOrder: true },
    },
}

Make sure that you have install the latest mini-css-extract-plugin, which is a dependency of @vue/cli-service.

Check links below for more information:

@JohnMica
Copy link

If you are using Vue CLI v3, add the code below to vue.config.js can ignore this error.

// vue.config.js
module.exports = {
    css: {
        extract: { ignoreOrder: true },
    },
}

Make sure that you have install the latest mini-css-extract-plugin, which is a dependency of @vue/cli-service.

Check links below for more information:

the only problem with this 'hack' is the order of the extracted CSS files would make the page load (on slower speed) really ugly and force the DOM to rearrange the whole thing once resources are loaded.
compute power wasted for no real reason :(

unless you guys managed to get all things sorted since this is now closed ? (I still don't have it working properly in nuxtjs with the latest release)

@Nsandomeno
Copy link

Nsandomeno commented Mar 11, 2021

In researching this there seem to be two cases: 1 - where re-arranging nested components solves the issue and 2 - where css-loader, postcss-loader, sass-loader, and a vuetify component style sheet conflict in some way. Does order matter in both cases to the same extent? @JohnMica @Djaler have you discovered any more on this?

@JohnMica
Copy link

@Nsandomeno i haven't discovered a way to fix this totally.
My fix consisted in loading a few styles in my "global CSS" file and even if there is duplication of styles, there are only the Grid and a few other thing needed.
Haven't tried with a new project - this use buefy or no component library at all.

@m4heshd
Copy link

m4heshd commented Jul 20, 2021

Reordering hundreds of nested imports manually is insane just so we can satisfy the loader (I know about the performance improvements). But yeah, reordering works. I'm sticking with ignoreOrder: true even though I'm noticing the issues @JohnMica mentioned. But I can live with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid The issue is missing information or is not a valid bug/feature request
Projects
None yet
Development

No branches or pull requests

10 participants