hxf31891 / react-gradient-color-picker

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

Module parse failed #79

Closed vetalgo closed 9 months ago

vetalgo commented 10 months ago

./node_modules/react-best-gradient-color-picker/dist/esm/hooks/useColorPicker.js 17:27 Module parse failed: Unexpected token (17:27) File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | // ) | // } const isGradient = value?.includes('gradient'); | const gradientType = getGradientType(value); | const degrees = getDegrees(value);
hxf31891 commented 10 months ago

@vetalgo investigating now

hxf31891 commented 9 months ago

@vetalgo I believe this bug is fixed in v3.0.3 but I cant say for sure without knowing more about your environment.

If you get a second please update the package and lmk the result.

Thanks!

hxf31891 commented 9 months ago

I believe this bug is now fixed as v3.0.3

Anyone who experiences the behaviour please reopen.