react-select icon indicating copy to clipboard operation
react-select copied to clipboard

css module missing

Open pritambinbill opened this issue 8 years ago • 24 comments

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

pritambinbill avatar Jan 12 '18 07:01 pritambinbill

+1, the same problem for me, started happening a couple of hours ago

MaksimAbramchuk avatar Jan 12 '18 07:01 MaksimAbramchuk

It seems that the file has been removed.

Previous version works: https://unpkg.com/[email protected]/dist/react-select.css.

crilopesp avatar Jan 12 '18 07:01 crilopesp

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 :(

acidjames avatar Jan 12 '18 10:01 acidjames

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.

robhinds avatar Jan 12 '18 11:01 robhinds

also missing for me

pedall avatar Jan 12 '18 11:01 pedall

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';

crilopesp avatar Jan 12 '18 13:01 crilopesp

Hopefully the push to unpkg.com is fixed for the css file, the other files are there....

ryanmartinneutrino avatar Jan 12 '18 14:01 ryanmartinneutrino

Still an issue for me 😢

sergical avatar Jan 12 '18 15:01 sergical

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.

kevinzwhuang avatar Jan 12 '18 18:01 kevinzwhuang

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]

JedWatson avatar Jan 13 '18 02:01 JedWatson

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 avatar Jan 13 '18 02:01 JedWatson

@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?

lausellduane avatar Aug 30 '18 13:08 lausellduane

Just seeing this today, file is missing in node_modules on version 2.0.0

SeanK1191 avatar Sep 07 '18 13:09 SeanK1191

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.

kwierchris avatar Sep 11 '18 09:09 kwierchris

Facing the same issue. CSS file seems to be missing. @JedWatson

maggi578 avatar Oct 01 '18 00:10 maggi578

+1

cskru avatar Oct 24 '18 03:10 cskru

Same issue. 2.0.1 version not working

apurvgandhwani avatar Oct 28 '18 11:10 apurvgandhwani

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.

mbenhalima avatar Nov 12 '18 02:11 mbenhalima

The CSS is still not available for react-select 2.2.0. Any chance of fixing this?

NicoleRauch avatar Jan 14 '19 13:01 NicoleRauch

I guess this never got answered???? Having the same issue, a whole major version later. -_-

damoncasale avatar May 27 '20 22:05 damoncasale