react-art
react-art copied to clipboard
Cannot react property "hex" of undefined "../art/core/color.js"
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".
Same :(
@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
I did not. Thanks :)
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..
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 :)
https://github.com/sebmarkbage/art/pull/19 I'm not sure why not merge ? :( :( :(