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

Certain CSS styles not loading in Docusaurus 2 #2141

Closed
yangshun opened this issue Dec 22, 2019 · 3 comments · Fixed by #2145
Closed

Certain CSS styles not loading in Docusaurus 2 #2141

yangshun opened this issue Dec 22, 2019 · 3 comments · Fixed by #2145
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@yangshun
Copy link
Contributor

🐛 Bug Report

Certain CSS modules styles are not loading. E.g. the theme toggle, the navbar styles.

This is caused by style-loader@1.1.0 webpack-contrib/style-loader#445 which causes overriding of the styles if the name of the CSS module files are the same.

Have you read the Contributing Guidelines on issues?

Yes.

To Reproduce

Initialize a new Docusaurus 2 website

Note from Maintainers

We might publish a new Docusaurus 2 alpha version which locks down the version of style-loader to 1.0.2.

@yangshun yangshun added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Dec 22, 2019
@yangshun yangshun changed the title Certain CSS styles not loading Certain CSS styles not loading in Docusaurus 2 Dec 22, 2019
@endiliey
Copy link
Contributor

style loader is only used in dev though. This affect prod as well ?

!isProd && require.resolve('style-loader'),

@bravo-kernel
Copy link
Contributor

I can confirm that this is only happening locally, the Netlify preview shows as expected

@rayronvictor
Copy link

Running yarn run build works as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants