Refused to apply style from 'https://unpkg.com/react-select@2.0.0-alpha.8/dist/react-select.css'
See original GitHub issueSomething has changed on https://unpkg.com/react-select@2.0.0-alpha.8/dist/react-select.css whihc is the official CSS way of rendering react-select. Basically, they deleted the file, or made some change that makes it unavailable right now.
All applications based on react-select, which are using this css file from https://unpkg.com/ are failing right now.
This happened like 30mn ago.
Official workaround:
- Use specific version
https://unpkg.com/react-select@1.2.1/dist/react-select.css
instead of dynamic onehttps://unpkg.com/react-select/dist/react-select.css
(very important to do so, since V2 will be released soon and anyone use the dynamic version will get the v2 instead of v1.2.1)
Workarounds while waiting for an official solution from react-select authors/contributors:
- ~~Use my personal CDN: https://storage.googleapis.com/studylink-loan-advisor/react-select-v1.2.1.min.css (temporary solution, don’t rely on this for long-term solution, only use this if you are in a hurry) see https://github.com/JedWatson/react-select/issues/2452#issuecomment-374762320~~
- Local import
import 'react-select/dist/react-select.css';
(or alike, using bower, etc.) - Copy the official CSS file and host it on your own CDN https://raw.githubusercontent.com/JedWatson/react-select/v1.2.1/dist/react-select.min.css
Issue Analytics
- State:
- Created 6 years ago
- Reactions:22
- Comments:21 (2 by maintainers)
Top Results From Across the Web
Refused to apply style from <URL> because its MIME type ...
i got the following issue after installing froala on my angular app. it's not applying the style for some reason : any ideas...
Read more >Refused to apply style from 'http://localhost:3000/style.css ...
I have this error when I run my client server JS application. CONSOLE ERROR IN DevTools: Refused to apply style from ...
Read more >Resolved - WordPress.org
Refused to apply style from 'https://example.com/#' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is ......
Read more >Refused to apply style from <URL> because ... - Microsoft Learn
Refused to apply style from <URL> because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is ......
Read more >MIME type ('text/html') is not a supported stylesheet ... - Drupal
Refused to apply style from 'http://localhost:88/' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME ...
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
@jgcmarins Webpack config (in this context, if it helps):
@jgcmarins You didn’t configure your webpack with a plugin that loads CSS files, that’s why.
I can’t guide you through this, though.