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.

CSS does not load using the documented way.

See original GitHub issue

In the documents it says, import 'react-select/dist/react-select.css'; will load the css. However, the component appears un-styled.

However it works fine using import '!style-loader!css-loader!react-select/dist/react-select.css'; Raised a PR for the same: https://github.com/JedWatson/react-select/pull/2219

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zhaoyi0113commented, Mar 21, 2018

It doesn’t work for me. There is no *.css file under node_modules/react-select/dist folder.

1reaction
midnightcodrcommented, Mar 20, 2018

Doesn’t work for me. There are no *.css files under node_modules/react-select/dist

Installed using npm install react-select

Other information: “react-select”: “^2.0.0-alpha.8”

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix CSS not linking to your HTML document
When working with HTML and CSS, you may find that your CSS is not styling your HTML document even when you've added the...
Read more >
Complete list of reasons why a css file might not be working
The URL you're using inside your HTML link tag may be unaccessable, ... If it doesn't load the file than you know the...
Read more >
How to Troubleshoot CSS Not Working - WPForms
In this tutorial, we'll walk through options to troubleshoot why your CSS is not working and offer possible solutions. Browser Caching.
Read more >
CSS not being applied in pages :/ · Discussion #22495 - GitHub
Looking at your page, it appears the issue is the “/” at the beginning of your stylesheet's source. Change “/css/main.css” to “css/main.css” (on ......
Read more >
Handling common HTML and CSS problems - MDN Web Docs
Some problems can be solved by just taking advantage of the natural way in which HTML/CSS work. Unrecognized HTML elements are treated by...
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