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.

Refused to apply style from 'https://unpkg.com/react-select@2.0.0-alpha.8/dist/react-select.css'

See original GitHub issue

Something 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 one https://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:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:22
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tvsudhir3commented, Mar 21, 2018

@jgcmarins Webpack config (in this context, if it helps):

module: {
  rules: [
    ...
    {
      test: /\.css\/,
      use: [{ loader: 'style-loader'}, { loader: 'css-loader' }],
    }
    ...
  ],
},

resolve: {
  ...
  extensions: ['.css']
  ...
}
1reaction
Vadorequestcommented, Mar 21, 2018

@jgcmarins You didn’t configure your webpack with a plugin that loads CSS files, that’s why.

You may need an appropriate loader to handle this file type.

I can’t guide you through this, though.

Read more comments on GitHub >

github_iconTop 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 >

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