bartonhammond / snowflake

:snowflake: A React-Native Android iOS Starter App/ BoilerPlate / Example with Redux, RN Router, & Jest with the Snowflake Hapi Server running locally or on RedHat OpenShift for the backend, or a Parse Server running locally or remotely on Heroku
http://bartonhammond.github.io/snowflake/snowflake.js.html
MIT License
4.59k stars 614 forks source link

SyntaxError: Strict mode does not allow function declarations in a lexically nested statement. #182

Closed fones closed 7 years ago

fones commented 7 years ago

Got following error:

image

node 7.5.0 android 6.0

Can be related to this: https://github.com/facebook/react-native/issues/11389

bartonhammond commented 7 years ago

I upgraded to https://github.com/bartonhammond/snowflake/releases/tag/0.2.1 and my Android installation and my GenyMotion and I am not able to reproduce this.

Please try upgrading everything mentioned and try again. If you can reproduce it, let me know and I'll open this back up. But for now, I'm closing.

Many thanks for checking out Snowflake!

werlleydev commented 7 years ago

Just activate a JS Minify option in the Emulator Dev Settings

In Emulator: Menu > Dev Settings > JS Minify ☑(active)

Here it worked only with this, I hope it has helped;)

ycpatel813 commented 6 years ago

@jwerlley Its great, but I am curious about to know the reason behind this issue. Can you elaborate with detail?

Metroxe commented 6 years ago

+1