You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Cannot react property "hex" of undefined "../art/core/color.js" #116
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".
@Frexuz did you find Solution?. If not you can forkreact-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
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 :)
Activity
Frexuz commentedon May 29, 2018
Same :(
nikith050 commentedon May 30, 2018
@Frexuz did you find Solution?. If not you can
forkreact-native-weband 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
Frexuz commentedon May 30, 2018
I did not. Thanks :)
treavis commentedon Jul 4, 2018
color.jsfile 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 breaksreact-nativebuild for android. So probably the best option is to removereact-artpackage fromreact-native-webaltogether.Also
react-artseems to be dead and not maintained..Frexuz commentedon Jul 10, 2018
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 :)relign commentedon Feb 26, 2019
sebmarkbage/art#19
I'm not sure why not merge ? :( :( :(