react-art icon indicating copy to clipboard operation
react-art copied to clipboard

Cannot react property "hex" of undefined "../art/core/color.js"

Open nikith050 opened this issue 7 years ago • 6 comments

I am using react-native-web in my Application. Recta-Native-web dependency is recta-art. When i run my react app from webpack in Windows i get this error Cannot read property "hex" of undefined "../art/core/color.js".

nikith050 avatar Mar 05 '18 06:03 nikith050

Same :(

Frexuz avatar May 29 '18 11:05 Frexuz

@Frexuz did you find Solution?. If not you can fork react-native-web and comment out the `art' library. this solved my issue. Hope this will be help full. Or you can use this https://www.npmjs.com/package/react-native-web-artless instead react-native-web

nikith050 avatar May 30 '18 09:05 nikith050

I did not. Thanks :)

Frexuz avatar May 30 '18 09:05 Frexuz

color.js file is broken. You can fix it yourself, there are few pull requests in Art package or you can ignore that file in .babelrc { "ignore": [ "art/core/color.js" ],} . But it seems (at least for me) that this package breaks react-native build for android. So probably the best option is to remove react-art package from react-native-web altogether.

Also react-art seems to be dead and not maintained..

treavis avatar Jul 04 '18 12:07 treavis

We have this problem using react-native-web, which is a separate webpack setup than our react-native app. So for us { "ignore": [ "art/core/color.js" ]} did work well. Thanks :)

Frexuz avatar Jul 10 '18 06:07 Frexuz

https://github.com/sebmarkbage/art/pull/19 I'm not sure why not merge ? :( :( :(

relign avatar Feb 26 '19 07:02 relign