
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
prebuild 시 아래와 같은 오류발생합니다.
CommandError: Error parsing JSON: {
"expo": {
"name": "myapp-toto",
"slug": "myapp-toto",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
]
"extra": {
"eas": {
"projectId": "29ed76fc-b4df-4acc-ac7b-9ff6e465bb94"
}
}
},
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-6707001837426621~6027794013",
"ios_app_id": "ca-app-pub-6707001837426621~1291306805"
}
}
├─ File: /Users/admin/Documents/sparta-study/myapp-toto/app.json
└─ Cause: SyntaxError: JSON5: invalid character '\"' at 39:5
37 | ]
38 | ]
> 39 | "extra": {
| ^
40 | "eas": {
41 | "projectId": "29ed76fc-b4df-4acc-ac7b-9ff6e465bb94"
42 | }
작성한 코드 및 에러 메세지
app.json 코드
{
"expo": {
"name": "myapp-toto",
"slug": "myapp-toto",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"plugins": [
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
]
"extra": {
"eas": {
"projectId": "29ed76fc-b4df-4acc-ac7b-9ff6e465bb94"
}
}
},
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-6707001837426621~6027794013",
"ios_app_id": "ca-app-pub-6707001837426621~1291306805"
}
}
오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
