airbnb / react-sketchapp

render React components to Sketch ⚛️💎
http://airbnb.io/react-sketchapp/
MIT License
14.94k stars 820 forks source link

Failing at the basic-setup #42

Closed radhigulati closed 7 years ago

radhigulati commented 7 years ago

I am...

------------------------------------------------------------------------------------------------- Reporting a bug or issue

When I run npm run render I receive a syntax error: SyntaxError: Use of const in strict mode.

screen shot 2017-04-26 at 9 08 22 pm
jemgold commented 7 years ago

Looks like you're using an old version of node :(

Can you try installing a newer version? If you're using nvm this should work

nvm install --lts
radhigulati commented 7 years ago

Hmm after I do that and do npm run render I see a new error. Attached the ss below

screen shot 2017-04-26 at 9 22 16 pm
ljharb commented 7 years ago

After switching node versions, you may need to run npm rebuild.

radhigulati commented 7 years ago

That doesn't seem to do it, I get the same error sadly :'(

jemgold commented 7 years ago

ok so now it looks like you're getting another error - looks like skpm can't find Sketch :)

Where is your Sketch application stored? See #38 - I think it's the same error 🤔

radhigulati commented 7 years ago

It worked! Thanks so much for directing me to the correct areas :)

jemgold commented 7 years ago

🙌 sorry for the hiccups!