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:
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:
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"
inpackage.json
), and after this allclass
attributes in the color picker areundefined
: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!