CSS does not load using the documented way.
See original GitHub issueIn 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:
- Created 6 years ago
- Reactions:11
- Comments:5 (1 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
It doesn’t work for me. There is no
*.css
file undernode_modules/react-select/dist
folder.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”