selectly icon indicating copy to clipboard operation
selectly copied to clipboard

Examples not working or outdated possibly?

Open snarlynarwhal opened this issue 6 years ago • 10 comments

I installed via npm and get these errors when using the example code:

TypeError: Cannot read property 'utils' of undefined TypeError: Cannot read property 'Select' of undefined

Not sure why. I did change: import { Select, Trigger, OptionList, Option, utils } from 'Selectly' to import { Select, Trigger, OptionList, Option, utils } from 'selectly' since I kept getting a module not found error.

Any idea if I might be doing something wrong?

snarlynarwhal avatar Aug 09 '17 00:08 snarlynarwhal

I get the same type of error.

aappddeevv avatar Aug 15 '17 19:08 aappddeevv

I got the same error as well.

pramodZipGo avatar Aug 16 '17 10:08 pramodZipGo

Guys its works with React 15.0.1 not with React 15.6.1. You can check with below link.

https://codepen.io/souporserious/pen/vGRZQL

pramodZipGo avatar Aug 16 '17 10:08 pramodZipGo

I'm definitely on 15.6 so I guess that makes sense. Do we know why it does not work on 15.6.1?

aappddeevv avatar Aug 16 '17 15:08 aappddeevv

I tried finding yesterday, but couldn't find it.

choyalpramod avatar Aug 17 '17 05:08 choyalpramod

Sorry I haven't been around on here. I've been super busy with some other projects and was on vacation as well. If you can hold out a little longer, I will be moving most of this work over to react-aria so it's all in one place and easier to use :)

souporserious avatar Aug 20 '17 15:08 souporserious

I used react-aria directly and a dropdown selects seem to be working.

aappddeevv avatar Aug 21 '17 14:08 aappddeevv

@aappddeevv It's not compatible because PropTypes is deprecated in 15.6.0. I'll create a pull request to fix this issue.

You must also use a lower case package now selectly instead of Selectly

krazyjakee avatar Jan 30 '18 13:01 krazyjakee

Any update on getting this to work with newer versions of React >= 16?

Tecktron avatar Jul 26 '18 16:07 Tecktron

Same. I was hoping to use this, but the fact that it just doesn't work is a large issue for me.

GodGinrai avatar Nov 13 '18 17:11 GodGinrai