React-select: Refused to apply style from 'https://unpkg.com/[email protected]/dist/react-select.css'

Created on 20 Mar 2018  路  3Comments  路  Source: JedWatson/react-select

hello, everything was working fine until an error from react-select causes all the styles for react-select to stop working.

CONSOLE:
Refused to apply style from 'https://unpkg.com/[email protected]/dist/react-select.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Most helpful comment

Cannot find module "/dist/react-select.css" in package [email protected] on CDN -> https://unpkg.com/[email protected]/dist/react-select.css

Try to delete CDN on publicindex.html

and adding this import 'react-select/dist/react-select.css'; right to your index.js

or

Edit your CDN to https://unpkg.com/[email protected]/dist/react-select.css base on your version.

My version "react-select": "^1.2.1"

All 3 comments

Cannot find module "/dist/react-select.css" in package [email protected] on CDN -> https://unpkg.com/[email protected]/dist/react-select.css

Try to delete CDN on publicindex.html

and adding this import 'react-select/dist/react-select.css'; right to your index.js

or

Edit your CDN to https://unpkg.com/[email protected]/dist/react-select.css base on your version.

My version "react-select": "^1.2.1"

@danilags Thanks buddy! Life saver <3

@danilags glad you got to the bottom of this, and thank you for posting the solution 馃檪

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbonaci picture mbonaci  路  3Comments

x-yuri picture x-yuri  路  3Comments

batusai513 picture batusai513  路  3Comments

yrabinov picture yrabinov  路  3Comments

pablote picture pablote  路  3Comments