css module missing
https://unpkg.com/react-select/dist/react-select.css Cannot find module "/dist/react-select.css" in package [email protected]
+1, the same problem for me, started happening a couple of hours ago
It seems that the file has been removed.
Previous version works: https://unpkg.com/[email protected]/dist/react-select.css.
Hi,
how do you change from one to another ? I'm using 1.2.0 and i still have 2.0 etc in my code
tried clearing yarn cache to no avail :(
Have the same problem - looks like the file is still in the build on npm, so assume it was some problem publishing on to unpkg.
also missing for me
I just use it in my index.html.
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/react-select.css">
Or you can import as it is explained in Readme file:
import 'react-select/dist/react-select.css';
Hopefully the push to unpkg.com is fixed for the css file, the other files are there....
Still an issue for me 😢
It's because 2.0.0-alpha.1 was released with the latest tag on npm - replacing v1.2.0 as the latest stable version of react-select on npm.
2.0.0-alpha.1 should have been released on a different tag than latest, preferably next or some other tag that denotes experimental releases (https://docs.npmjs.com/cli/dist-tag#purpose)
@JedWatson I'd suggest unpublishing [email protected] to restore react-select for end-users, and republishing it under the next tag.
npm unpublish
npm publish --tag next
This way, we restore react-select to those depending on it from unpkg from v1, while retain access to the experimental build for those who want to, through npm install [email protected] or npm install react-select@next.
Sorry, I totally missed that implication of publishing the alpha version of 2.0 to npm. Will try and sort this out asap. In the meantime, you should be able to fix this by ensuring that:
If you're using npm with a bundler (parcel, webpack, rollup, etc)
Ensure your dependency in package.json is:
"react-select": "^1.2.0"
If you're using the umd build from unpkg:
Ensure your script tag points at the following src:
<script src="https://unpkg.com/[email protected]/dist/react-select.js"></script>
If you're installing react-select in your project for the first time:
yarn add [email protected]
or
npm install --save [email protected]
I believe this has been resolved now by updating the tags for react-select
They are now:
latest: 1.2.0
next: 2.0.0-alpha.1
The unpkg url https://unpkg.com/react-select now correctly resolves to https://unpkg.com/[email protected] and the npm page https://www.npmjs.com/package/react-select is showing v1.2.0 as the latest version (with the correct readme)
@JedWatson I got the same error today with the latest version [email protected] that was published a month ago. What can I do to fix this?
Just seeing this today, file is missing in node_modules on version 2.0.0
Same problem here. Trying to switch to version 2.0.0 in order to use the optgroup featrue but the CSS file seems not to exist anymore and without at least the multi select feature is broken.
Facing the same issue. CSS file seems to be missing. @JedWatson
+1
Same issue. 2.0.1 version not working
Solved using @JedWatson suggestion above :
npm install --save [email protected]
I am using npm + webpack.
I have tried version 2.0.1 but I can't apply the react-select CSS for my select form. Not sure how to solve that, but the above works as a workaround for now.
The CSS is still not available for react-select 2.2.0. Any chance of fixing this?
I guess this never got answered???? Having the same issue, a whole major version later. -_-