nanohop/sketch-to-react-native

Cannot read property 'right' of undefined

Opened this issue · 4 comments

$> sketch-to-react-native TEMP.svg
gathering elements...
filtering elements...
TypeError: Cannot read property 'right' of undefined
at determineAlignJustify (/Users/matthudson/Development/sketch-to-react-native/build/attributes.js:133:86)
at /Users/matthudson/Development/sketch-to-react-native/build/flex.js:286:26
at Array.forEach ()
at flattenBoxComps (/Users/matthudson/Development/sketch-to-react-native/build/flex.js:281:13)
at flattenBoxComps (/Users/matthudson/Development/sketch-to-react-native/build/flex.js:276:9)
at flattenBoxComponents (/Users/matthudson/Development/sketch-to-react-native/build/flex.js:298:3)
at _callee$ (/Users/matthudson/Development/sketch-to-react-native/build/index.js:147:36)
at tryCatch (/Users/matthudson/Development/sketch-to-react-native/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/Users/matthudson/Development/sketch-to-react-native/node_modules/regenerator-runtime/runtime.js:299:22)
at Generator.prototype.(anonymous function) [as next] (/Users/matthudson/Development/sketch-to-react-native/node_modules/regenerator-runtime/runtime.js:117:21)

Where can I send the SVG?

@inturbidus You can email it to me at chris@nanohop.com and I can check it out. This is a known issue though that we're working on, so a future version should fix the issue

I have a temporary tricks recommendation until next fixes are come up, how about you provide all SVG template that could be converted? using your example works on me.