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

Problem running react-native run-ios #178

Closed
osolano opened this issue Feb 10, 2017 · 7 comments
Closed

Problem running react-native run-ios #178

osolano opened this issue Feb 10, 2017 · 7 comments

Comments

@osolano
Copy link

osolano commented Feb 10, 2017

Hello,

I've just tried a fresh clone of the project and followed the getting started instructions but am getting blocked by this error

Can't find variable Symbol

Tapping the first cell on this screenshot points to this area

var isEffectSymbol = Symbol('isEffect');

image

I performed the steps exactly as mentioned on Readme

@tino-junge
Copy link
Contributor

Hi @osolano thanks for reporting this issue. I've just build a fresh clone of pepperoni without issues. I've used the following steps:

git clone [email protected]:futurice/pepperoni-app-kit.git
cd pepperoni-app-kit
yarn install
react-native run-ios

Could you specify your environment setup?

@osolano
Copy link
Author

osolano commented Feb 10, 2017

Sure, I'm on

react-native-cli: 2.0.1
react-native: 0.40.0
yarn v0.19.1
npm: 4.1.2
node: 7.5.0

@osolano
Copy link
Author

osolano commented Feb 10, 2017

I also just tried update react-native-cli and still have the same error.

react-native-cli: 2.0.1
react-native: 0.41.2

@tino-junge
Copy link
Contributor

tino-junge commented Feb 11, 2017

Your problem might be related to ES2015 Symbols (see here for more: facebook/react-native#4676). Someone was able to fix it for iOS to install a babel polyfill (https://babeljs.io/docs/usage/polyfill/). Let me know if it solves your issue.

@tino-junge
Copy link
Contributor

Closing this now due to inactivity. Can reopen if the issue still occurs.

@Charlie-Hua
Copy link

Adding this line to the top of index.ios.js fixes it for me:

import 'es6-symbol/implement';

@FruitieX
Copy link
Contributor

FruitieX commented Mar 9, 2017

IIRC iOS < 9.0 does not implement Symbol in their JSC engine. Since #192 was merged, we are using a patched version of redux-loop which uses a Symbol polyfill when needed, which means the problems arising from missing Symbol will be fixed on all platforms regardless of version.

Please re-open if this is not the case.

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

No branches or pull requests

4 participants