Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'match' of undefined #32

Open
nojas01 opened this issue Feb 21, 2018 · 7 comments
Open

TypeError: Cannot read property 'match' of undefined #32

nojas01 opened this issue Feb 21, 2018 · 7 comments

Comments

@nojas01
Copy link

nojas01 commented Feb 21, 2018

I'm getting the following error on Ubuntu 17.10. Might be Ubuntu or my setup related but maybe someone know a fix. thanks.


sketch-to-react-native ~myFile.svg
/sketch-to-react-native/build/input.js:12
  var oldDefs = data.match(/\<defs\>[\s\S]*\<\/defs\>/g);
                    ^

TypeError: Cannot read property 'match' of undefined
    at prepData (/sketch-to-react-native/build/input.js:12:21)
    at ReadFileContext.callback (/sketch-to-react-native/build/index.js:89:31)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:421:13)

@Culzean
Copy link

Culzean commented Mar 1, 2018

I am also seeing this issue, running on windows.

@Culzean
Copy link

Culzean commented Mar 1, 2018

I'm using phyton 3.5.2
tensorflow 1.5.0
react-native-cli: 2.0.1
Node v8.9.4

so one or more of these could be causing an issue..

@vcompanyb
Copy link

Same problem here

@zjuwjf
Copy link

zjuwjf commented Mar 15, 2018

The same to me.

Node v9.5.0

@bkcan
Copy link

bkcan commented May 1, 2018

Same here

Python: 3.6
Node: v8.7.0

@alepdb
Copy link

alepdb commented May 28, 2018

Anyone fix this? Same problem here...

@will-r-wang
Copy link

Hey I recently ran into this issue myself. Seems like in this following line of code: sketch-to-react-native ~/Desktop/myfile.svg
/Desktop/myfile.svg should be replaced with the appropriate .svg file location when downloaded from sketch.
Hope this helps! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants