-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
0.47.1 Build iOS Error #15496
Comments
same problem here Environment react-native -v: 0.47.1 |
Similar issue here: TransformError: ...../index.ios.js: Unexpected token ) (While processing preset: "..../node_modules/babel-preset-react-native/index.js") This same exception comes when I try to run react-native-git-upgrade. Something seems to be generally wrong, as this happens on a brand new project. |
TransformError: ../Test/index.ios.js: Unexpected token ) (While processing preset: "../Test/node_modules/babel-preset-react-native/index.js") RCTFatal node 8.4.0 "dependencies": { |
Also failing for me. Running
|
This issue is about a syntax error, I am having TransformError as you guys. |
@esganzerla thank you ! |
+1 experiencing the same issue on |
@esganzerla thank you Any idea around a potential workaround? I'm trying to initialise the project using the new method (expo), maybe that's working and then once it's done I can eject the react native project from it (update soon). This is really surprising, given it's such a basic scenario (I've just tried to set up a new project :)) |
+1 |
+1 on this. Getting the same error as @jarecsni does. |
+1 deleting the .babelrc sometimes works but its really annoying :( |
deleting trailing comma on line 40 of
should be
|
Thanks @rpfaffman Your solution worked. This should be fixed in f69638b. |
@rpfaffman solution works! can't update using |
+1 I'm tired of seeing a red simulator. I'm new to react-native with a great idea in mind, but it seems I'm stuck until this is fixed. |
@StevenGreenup you have just to manually edit the file remove the last coma from [
'transform-es2015-modules-commonjs',
{strict: false, allowTopLevelThis: true},
], <---- REMOVE ONLY THIS COMA |
So apparently this issue has already been fixed, still if you create a clean project with react-native init it still uses the broken version. |
Ah yes absolutely, I'll release today. |
Summary: The `3.0.0` contained syntax errors for older versions of Node. See also #15496 Reviewed By: cpojer Differential Revision: D5677965 fbshipit-source-id: cae07fdce7e887c6fb1d6087791db8307f6f72f3
Only completely reinstall node in my system helped for me. |
Still broken. Repro: |
The latest release Prove:
|
I had this issue as well when I tried to create an archive in Xcode. For me, it was because the command to build the JS bundle was failing, and the reason it was failing was because one of my dependencies had a specific babel preset in its In the Xcode error output, a few lines above the "main.jsbundle does not exist" line, I had the following error message from the
So I installed the missing plugin by running: I then went to Xcode again, did a Product -> Clean, then Product -> Archive, and this time it worked. I actually used to have these dependency-related babel plugins installed, but I removed them because the release notes for 0.50.0 (https://github.com/facebook/react-native/releases/tag/v0.50.0) stated that this wouldn't be required anymore due to the change in enableBabelRCLookup. But I guess that change isn't quite working correctly, so for now we'll have to keep using the workaround I used here, or the postinstall workaround that they describe in those release notes. For reference, here's my dependencies:
|
It's still broken. I tried this solution but still can't fix it. "react-native": "^0.50.0",
"react": "^16.0.0",
"node": "v8.7.0" |
@Pranit-Harekar what is the error/output you get when you do Product -> Clean then Product -> Archive in Xcode? Or alternatively, when you run the following command:
|
@jordanmkoncz The error is |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: 0.47.1node -v
: 8.2.1npm -v
: 5.3.0yarn --version
: 0.20.3Then, specify:
Steps to Reproduce
Expected Behavior
The project should be successfully build and run in the simulator
Actual Behavior
The project build failed
Reproducible Demo
https://github.com/pohodnya/rn0471_build_ios_release_error_reproduce
The text was updated successfully, but these errors were encountered: