hxf31891 / react-gradient-color-picker

An easy to use color/gradient picker for React.js
MIT License
146 stars 49 forks source link

All classes in components are "undefined" #97

Closed mattparlane closed 4 months ago

mattparlane commented 5 months ago

Sorry to create an issue since I'm not sure this is reproducible, and it's pretty vague...

I had to convert my project to esm ("type": "module" in package.json), and after this all class attributes in the color picker are undefined:

Screenshot 2024-06-13 194552

I have tried to look through the source code to figure out what's going on, but I can't even see where the class names should be coming from.

For example if I search for a random class name (like rbgcpColorModelDropdown), it only exists in the stylesheet, and then it's referred to in JS, it's never defined in JS:

https://github.com/search?q=repo%3Ahxf31891%2Freact-gradient-color-picker%20rbgcpColorModelDropdown&type=code

Is something parsing the stylesheet and creating the class names? What is going on?

I'm using 3.0.8 btw.

Happy to provide more information, please let me know where I should be looking. Thanks!

hxf31891 commented 4 months ago

Likely related to issue 100.

Can you give me some info on your env? @mattparlane

hxf31891 commented 4 months ago

@mattparlane this should be fixed as of 3.0.10