hxf31891 / react-gradient-color-picker

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

Latest version breaks when building inside a next project due to Global CSS cannot be imported from withing node_modules #72

Closed samcodes-io closed 11 months ago

samcodes-io commented 12 months ago

Here is the error:

./node_modules/react-best-gradient-color-picker/lib/styles.css Global CSS cannot be imported from within node_modules. Read more: https://nextjs.org/docs/messages/css-npm Location: node_modules/react-best-gradient-color-picker/lib/index.js

hxf31891 commented 12 months ago

@samcodes-io bummer! I was afraid this might happen but I tested on a next project and it seemed to work. Can you provide some info on next version, rbgcp-package version, and the file your importing the component into please?

hxf31891 commented 12 months ago

This should be fixed with v2.3.3 but I wasn't able to reproduce. @samcodes-io please confirm.

av-k commented 11 months ago

I noticed the same issue when versions 2.3.1 and 2.3.2 were released, but now in 2.3.3 everything works as before.

hxf31891 commented 11 months ago

@av-k just confirming, when you say works as before you mean it works right? lol

samcodes-io commented 11 months ago

i will try next latest with react-gradient-color-picker latest and get back to you

samcodes-io commented 11 months ago

@hxf31891 I can confirm it works as expected, no issues with latest version and latest Next Thanks for your help.

av-k commented 11 months ago

I noticed the same issue when versions 2.3.1 and 2.3.2 were released, but now in 2.3.3 everything works as before.

play on words :clown_face:

hxf31891 commented 11 months ago

@samcodes-io @av-k Thanks guys!