When I run expo upgrade within my project directory I receive the following error:
Error parsing JSON: {
“expo”: {
“name”: “Ahead”,
“slug”: “Ahead”,
“privacy”: “unlisted”,
“sdkVersion”: “35.0.0”,
“platforms”: [
“ios”,
“android”,
“web”
],
“version”: “1.0.5”,
“orientation”: “portrait”,
“icon”: “./assets/icon.png”,
“splash”: {
“image”: “./assets/splash.png”,
“resizeMode”: “contain”,
“backgroundColor”: “#ffffff”
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“assetBundlePatterns”: [
“**/*”
],
“ios”: {
“supportsTablet”: true,
“bundleIdentifier”: “app.Ahead.Ahead”,
“userInterfaceStyle”: “automatic”,
}
}
}
└─ Cause: SyntaxError: Unexpected token } in JSON at position 634
28 | “bundleIdentifier”: “app.Ahead.Ahead”,
29 | “userInterfaceStyle”: “automatic”,
30 | }
| ^
31 | }
32 | }
33 |
As you can see there is no syntax error in my app.json so I am unsure what could be causing the upgrade to not work.
My diagnostics:
Expo CLI 3.11.1 environment info:
System:
OS: macOS 10.14.5
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.0 - /usr/local/bin/node
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 11.3/11C29 - /usr/bin/xcodebuild
npmPackages:
expo: ^35.0.1 => 35.0.1
react: 16.12.0 => 16.12.0
react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8
react-navigation: ^4.0.10 => 4.0.10
npmGlobalPackages:
expo-cli: 3.11.1