Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Unexpected Token Errors with expo start after upgrading Expo #135

Closed
askpatrickw opened this issue Nov 1, 2018 · 1 comment
Closed

Unexpected Token Errors with expo start after upgrading Expo #135

askpatrickw opened this issue Nov 1, 2018 · 1 comment
Labels

Comments

@askpatrickw
Copy link

Description

After following the upgrade steps from 27.0 -> 28.0 -> 29.0 -> 30.0 I get an error when I try to run my app on android emulator. The error ocurrs at each step (i.e. it happened at 28.0 but I decided to keep going)

I did blow away node_modules and npm install.
I launched with expo start -c

NOTE: When I run expo build:android the resulting APK can be side loaded and runs fine.
I suspect there is more to be cleaned up when doing upgrades which is not documented.

Expected Behavior

App should run fine.

Observed Behavior

What actually happened when you performed the above actions?

If there's an error message, please paste the full terminal output and error message in this code block:

Unexpected token '{'. Expected ')' to end a while loop condition. 
(http://192.168.1.186:19001/./node_modules/react-native-scripts/build/bin/crna-entry.bundle?
platform=android&dev=true&minify=false&hot=false&
assetPlugin=<snip_path>%5Cnode_modules%5Cexpo%5Ctools%5ChashAssetFiles:151283)

Unexpected token '{'. Expected ')' to end a while loop condition. 
(http://192.168.1.186:19001/./node_modules/react-native-scripts/build/bin/crna-entry.bundle?
platform=android&dev=true&minify=false&hot=false&
assetPlugin=<snip_path>%5Cnode_modules%5Cexpo%5Ctools%5ChashAssetFiles:151283)

Environment

Expo CLI 2.2.5 environment info:
    System:
      OS: Windows 10
    Binaries:
      npm: 6.4.1 - C:\USERS\PATRI\APPDATA\ROAMING\NPM\npm.CMD
    IDEs:
      Android Studio: Version  3.2.0.0 AI-181.5540.7.32.5056338

  Diagnostics report:
    https://exp-xde-diagnostics.s3.amazonaws.com/mobilelast-a2b18ec2-8e7a-4528-a495-d9302841a640.tar.gz

Also specify:

  • Phone/emulator/simulator platform, model and version:
    Name: Pixel_2_XL_API_28
    CPU/ABI: Google APIs Intel Atom (x86)
    Path: <snip_path>\.android\avd\Pixel_2_XL_API_28.avd
    Target: google_apis [Google APIs] (API level 28)
    Skin: pixel_2_xl
    SD Card: 100M
    hw.dPad: no
    hw.lcd.height: 2880
    runtime.network.speed: full
    hw.accelerometer: yes
    hw.device.name: pixel_2_xl
    vm.heapSize: 256
    skin.dynamic: yes
    hw.device.manufacturer: Google
    hw.lcd.width: 1440
    hw.gps: yes
    hw.initialOrientation: Portrait
    image.androidVersion.api: 28
    hw.audioInput: yes
    image.sysdir.1: system-images\android-28\google_apis\x86\
    tag.id: google_apis
    showDeviceFrame: yes
    hw.camera.back: virtualscene
    hw.mainKeys: no
    AvdId: Pixel_2_XL_API_28
    hw.camera.front: emulated
    hw.lcd.density: 560
    avd.ini.displayname: Pixel 2 XL API 28
    hw.arc: false
    hw.gpu.mode: auto
    hw.device.hash2: MD5:1a4fa6b2569f0b76bfb9824b6b6fc976
    hw.ramSize: 1536
    hw.trackBall: no
    PlayStore.enabled: false
    fastboot.forceColdBoot: no
    hw.battery: yes
    hw.cpu.ncore: 4
    hw.sdCard: yes
    tag.display: Google APIs
    runtime.network.latency: none
    hw.keyboard: yes
    hw.sensors.proximity: yes
    disk.dataPartition.size: 800M
    hw.sensors.orientation: yes
    avd.ini.encoding: UTF-8
    hw.gpu.enabled: yes

Reproducible Demo

... private ... Let me know if the error isn't enough to work with.

@askpatrickw
Copy link
Author

dupe of expo/expo#2487

@lock lock bot added the outdated label Jul 1, 2019
@lock lock bot locked and limited conversation to collaborators Jul 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant