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

getting "Unexpected token {" after updating to 0.57.3 #21777

Closed
3 tasks done
etodanik opened this issue Oct 14, 2018 · 4 comments
Closed
3 tasks done

getting "Unexpected token {" after updating to 0.57.3 #21777

etodanik opened this issue Oct 14, 2018 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@etodanik
Copy link

Environment

React Native Environment Info:
System:
OS: macOS 10.14.1
CPU: x64 Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
Memory: 50.90 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: ^16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: ^0.57.3 => 0.57.3
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Description

After updating my project to RN v0.57.3 I'm getting this error. Metro bundler does not indicate that anything is wrong. The exact same codebase worked fine just before the update.

screen shot 2018-10-14 at 12 16 37

Reproducible Demo

Update app to RN v0.57.3? I'm not 100% sure.

There is at least one more person who had this issue:
#21558

@pdaivik

@etodanik
Copy link
Author

etodanik commented Oct 14, 2018

Updating metro bundler and react-native-cli seemed to have cleared up the error a little bit:

Unhandled JS Exception: Unexpected token '{'.
import call expects exactly one argument.

screen shot 2018-10-14 at 13 44 11

@etodanik
Copy link
Author

Upon further investigation, this was the issue I encountered:
#20150

One of the workarounds worked out.

@RLesser
Copy link

RLesser commented Oct 15, 2018

Hey, I'm getting the same error as you were, which of the workarounds did you do that worked? Not sure what is causing this and it's not easy to debug.

@bmwertman
Copy link

I'm seeing this same error on the latest React-native

React Native Environment Info:
System:
OS: macOS 10.14
CPU: (4) x64 Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz
Memory: 38.86 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.2 - ~/.nvm/versions/node/v8.11.2/bin/node
Yarn: 1.6.0 - /usr/local/bin/yarn
npm: 6.7.0 - ~/.npm-packages/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 25
IDEs:
Android Studio: 3.1 AI-173.4720617
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.6 => 0.58.6
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

@facebook facebook locked as resolved and limited conversation to collaborators Oct 14, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants