커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
snack으로 실습하다가 급하게 expo로 다시 만들어보고 있는데, 오류가 있습니다 ㅜ
[왕초보] 나만의 수익성 앱, 앱개발 종합반 v5
4주차
북마크
윤*희
댓글
12
추천
0
조회수
24
조회수
24
답변 완료

일단 라이브러리 설치를 모두 마쳤구요. 4주차에 제공된 코드스니펫을 복붙해서 expo go를 실행시켜봤는데요.

에러가 많이 생겨서 해석 및 해결 방안 도움 요청 드립니다!



[2023-02-21T04:41:42.836Z] @firebase/analytics:, Analytics: Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: (1) Cookies are not available. (analytics/invalid-analytics-context).

at node_modules\@firebase\logger\dist\index.cjs.js:null in defaultLogHandler

at node_modules\@firebase\logger\dist\index.cjs.js:null in Logger.prototype.warn

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in warnOnBrowserContextMismatch

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in factory

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in Component$argument_1

at node_modules\@firebase\component\dist\esm\index.esm2017.js:null in Provider#getOrInitializeService

at node_modules\@firebase\component\dist\esm\index.esm2017.js:null in Provider#initialize

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in initializeAnalytics

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in getAnalytics

at firebaseConfig.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at pages\DetailPage.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at navigation\StackNavigator.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at App.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at node_modules\expo\AppEntry.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at node_modules\metro-runtime\src\polyfills\require.js:null in guardedLoadModule

at http://192.168.55.92:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in global code


[2023-02-21T04:41:42.858Z] @firebase/analytics:, Analytics: IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: IndexedDB is not available in this environment. (analytics/indexeddb-unavailable).

at node_modules\@firebase\logger\dist\index.cjs.js:null in defaultLogHandler

at node_modules\@firebase\logger\dist\index.cjs.js:null in Logger.prototype.warn

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in validateIndexedDB

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in _next

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in Promise$argument_0

at node_modules\promise\setimmediate\core.js:null in tryCallTwo

at node_modules\promise\setimmediate\core.js:null in doResolve

at node_modules\promise\setimmediate\core.js:null in Promise

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in <anonymous>

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in <global>

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in validateIndexedDB

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in _initializeAnalytics

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in _next

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in Promise$argument_0

at node_modules\promise\setimmediate\core.js:null in tryCallTwo

at node_modules\promise\setimmediate\core.js:null in doResolve

at node_modules\promise\setimmediate\core.js:null in Promise

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in <anonymous>

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in <global>

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in _initializeAnalytics

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in factory

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in Component$argument_1

at node_modules\@firebase\component\dist\esm\index.esm2017.js:null in Provider#getOrInitializeService

at node_modules\@firebase\component\dist\esm\index.esm2017.js:null in Provider#initialize

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in initializeAnalytics

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in getAnalytics

at firebaseConfig.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at pages\DetailPage.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at navigation\StackNavigator.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at App.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at node_modules\expo\AppEntry.js:null in <global>

at node_modules\metro-runtime\src\polyfills\require.js:null in loadModuleImplementation

at node_modules\metro-runtime\src\polyfills\require.js:null in guardedLoadModule

at http://192.168.55.92:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in global code


Error: Text strings must be rendered within a <Text> component.


This error is located at:

  in RCTView (created by View)

  in View (created by Card)

  in RCTView (created by View)

  in View (created by AnimatedComponent)

  in AnimatedComponent

  in AnimatedComponentWrapper (created by TouchableOpacity)

  in TouchableOpacity (created by TouchableOpacity)

  in TouchableOpacity (created by Card)

  in Card (created by MainPage)

  in RCTView (created by View)

  in View (created by MainPage)

  in RCTView (created by View)

  in View (created by ScrollView)

  in RCTScrollView (created by ScrollView)

  in ScrollView (created by ScrollView)

  in ScrollView (created by MainPage)

  in MainPage (created by SceneView)

  in StaticContainer

  in EnsureSingleNavigator (created by SceneView)

  in SceneView (created by CardContainer)

  in RCTView (created by View)

  in View (created by CardContainer)

  in RCTView (created by View)

  in View (created by CardContainer)

  in RCTView (created by View)

  in View

  in CardSheet (created by Card)

  in RCTView (created by View)

  in View (created by AnimatedComponent)

  in AnimatedComponent

  in AnimatedComponentWrapper (created by PanGestureHandler)

  in PanGestureHandler (created by PanGestureHandler)

  in PanGestureHandler (created by Card)

  in RCTView (created by View)

  in View (created by AnimatedComponent)

  in AnimatedComponent

  in AnimatedComponentWrapper (created by Card)

  in RCTView (created by View)

  in View (created by Card)

  in Card (created by CardContainer)

  in CardContainer (created by CardStack)

  in RNSScreen (created by AnimatedComponent)

  in AnimatedComponent

  in AnimatedComponentWrapper (created by InnerScreen)

  in Suspender (created by Freeze)

  in Suspense (created by Freeze)

  in Freeze (created by DelayedFreeze)

  in DelayedFreeze (created by InnerScreen)

  in InnerScreen (created by Screen)

  in Screen (created by MaybeScreen)

  in MaybeScreen (created by CardStack)

  in RNSScreenContainer (created by ScreenContainer)

  in ScreenContainer (created by MaybeScreenContainer)

  in MaybeScreenContainer (created by CardStack)

  in RCTView (created by View)

  in View (created by Background)

  in Background (created by CardStack)

  in CardStack (created by HeaderShownContext)

  in RNCSafeAreaProvider (created by SafeAreaProvider)

  in SafeAreaProvider (created by SafeAreaInsetsContext)

  in SafeAreaProviderCompat (created by StackView)

  in RNGestureHandlerRootView (created by GestureHandlerRootView)

  in GestureHandlerRootView (created by StackView)

  in StackView (created by StackNavigator)

  in PreventRemoveProvider (created by NavigationContent)

  in NavigationContent

  in Unknown (created by StackNavigator)

  in StackNavigator (created by StackNavigator)

  in StackNavigator (created by App)

  in EnsureSingleNavigator

  in BaseNavigationContainer

  in ThemeProvider

  in NavigationContainerInner (created by App)

  in App (created by withDevTools(App))

  in withDevTools(App)

  in RCTView (created by View)

  in View (created by AppContainer)

  in RCTView (created by View)

  in View (created by AppContainer)

  in AppContainer

  in main(RootComponent)

at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException

at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException

at node_modules\react-native\Libraries\Core\ReactFiberErrorDialog.js:null in showErrorDialog

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in logCapturedError

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in update.callback

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in callCallback

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitUpdateQueue

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitLayoutEffectOnFiber

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitLayoutMountEffects_complete

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitLayoutEffects_begin

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitLayoutEffects

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitRootImpl

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in commitRoot

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in performSyncWorkOnRoot

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in flushSyncCallbacks

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in flushSyncCallbacksOnlyInLegacyMode

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in scheduleUpdateOnFiber

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in dispatchSetState

at pages\MainPage.js:null in setTimeout$argument_0

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _allocateCallback$argument_0

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in callTimers

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callFunction

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in callFunctionReturnFlushedQueue

PayloadTooLargeError: request entity too large

  at readStream (C:\Users\renom\AppData\Roaming\npm\node_modules\expo-cli\node_modules\raw-body\index.js:155:17)

  at getRawBody (C:\Users\renom\AppData\Roaming\npm\node_modules\expo-cli\node_modules\raw-body\index.js:108:12)

  at read (C:\Users\renom\AppData\Roaming\npm\node_modules\expo-cli\node_modules\body-parser\lib\read.js:77:3)

  at jsonParser (C:\Users\renom\AppData\Roaming\npm\node_modules\expo-cli\node_modules\body-parser\lib\types\json.js:135:5)

  at call (F:\스파르타 코딩클럽 - 앱개발종합반\sparta-myhoneytip-Mency\node_modules\connect\index.js:239:7)

  at next (F:\스파르타 코딩클럽 - 앱개발종합반\sparta-myhoneytip-Mency\node_modules\connect\index.js:183:5)

  at remoteDevtoolsCorsMiddleware (C:\Users\renom\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\dev-server\src\middleware\remoteDevtoolsCorsMiddleware.ts:31:3)

  at call (F:\스파르타 코딩클럽 - 앱개발종합반\sparta-myhoneytip-Mency\node_modules\connect\index.js:239:7)

  at next (F:\스파르타 코딩클럽 - 앱개발종합반\sparta-myhoneytip-Mency\node_modules\connect\index.js:183:5)

  at serveStatic (F:\스파르타 코딩클럽 - 앱개발종합반\sparta-myhoneytip-Mency\node_modules\serve-static\index.js:75:16)


Object {

 "coords": Object {

  "accuracy": 32.564998626708984,

  "altitude": 95.9000015258789,

  "altitudeAccuracy": 28.182981491088867,

  "heading": 0,

  "latitude": 37.3741733,

  "longitude": 126.7238088,

  "speed": 0,

 },

 "mocked": false,

 "timestamp": 1676954507449,

}

37.3741733

126.7238088


[Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'window.document.getElementsByTagName')]

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in findGtagScriptOnPage

at node_modules\@firebase\analytics\dist\esm\index.esm2017.js:null in _initializeAnalytics

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in asyncGeneratorStep

at node_modules\@babel\runtime\helpers\asyncToGenerator.js:null in _next

at node_modules\promise\setimmediate\core.js:null in tryCallOne

at node_modules\promise\setimmediate\core.js:null in setImmediate$argument_0

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _allocateCallback$argument_0

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callReactNativeMicrotasksPass

at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in callReactNativeMicrotasks

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callReactNativeMicrotasks

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in flushedQueue


Object {

 "config": Object {

  "adapter": Array [

   "xhr",

   "http",

  ],

  "data": undefined,

  "env": Object {

   "Blob": [Function Blob],

   "FormData": [Function FormData],

  },

  "headers": Object {

   "Accept": "application/json, text/plain, */*",

  },

  "maxBodyLength": -1,

  "maxContentLength": -1,

  "method": "get",

  "timeout": 0,

  "transformRequest": Array [

   [Function transformRequest],

  ],

  "transformResponse": Array [

   [Function transformResponse],

  ],

  "transitional": Object {

   "clarifyTimeoutError": false,

   "forcedJSONParsing": true,

   "silentJSONParsing": true,

  },

  "url": "http://api.openweathermap.org/data/2.5/weather?lat=37.3741733&lon=126.7238088&appid=cfc258c75e1da2149c33daffd07a911d&units=metric",   

  "validateStatus": [Function validateStatus],

  "xsrfCookieName": "XSRF-TOKEN",

  "xsrfHeaderName": "X-XSRF-TOKEN",

 },

 "data": Object {

  "base": "stations",

  "clouds": Object {

   "all": 7,

  },

  "cod": 200,

  "coord": Object {

   "lat": 37.3742,

   "lon": 126.7238,

  },

  "dt": 1676954506,

  "id": 1843564,

  "main": Object {

   "feels_like": -0.04,

   "grnd_level": 1035,

   "humidity": 24,

   "pressure": 1035,

   "sea_level": 1035,

   "temp": 1.41,

   "temp_max": 4.02,

   "temp_min": 0.05,

  },

  "name": "Incheon",

  "sys": Object {

   "country": "KR",

   "id": 8105,

   "sunrise": 1676931371,

   "sunset": 1676971066,

   "type": 1,

  },

  "timezone": 32400,

  "visibility": 10000,

  "weather": Array [

   Object {

    "description": "clear sky",

    "icon": "01d",

    "id": 800,

    "main": "Clear",

   },

  ],

  "wind": Object {

   "deg": 315,

   "gust": 1.5,

   "speed": 1.43,

  },

 },

 "headers": Object {

  "access-control-allow-credentials": "true",

  "access-control-allow-methods": "GET, POST",

  "access-control-allow-origin": "*",

  "connection": "keep-alive",

  "content-length": "509",

  "content-type": "application/json; charset=utf-8",

  "date": "Tue, 21 Feb 2023 04:41:46 GMT",

  "server": "openresty",

  "x-cache-key": "/data/2.5/weather?lat=37.37&lon=126.72&units=metric",

 },

 "request": XMLHttpRequest {

  "DONE": 4,

  "HEADERS_RECEIVED": 2,

  "LOADING": 3,

  "OPENED": 1,

  "UNSENT": 0,

  "_aborted": false,

  "_cachedResponse": undefined,

  "_hasError": false,

  "_headers": Object {

   "accept": "application/json, text/plain, */*",

  },

  "_incrementalEvents": false,

  "_lowerCaseResponseHeaders": Object {

   "access-control-allow-credentials": "true",

   "access-control-allow-methods": "GET, POST",

   "access-control-allow-origin": "*",

   "connection": "keep-alive",

   "content-length": "509",

   "content-type": "application/json; charset=utf-8",

   "date": "Tue, 21 Feb 2023 04:41:46 GMT",

   "server": "openresty",

   "x-cache-key": "/data/2.5/weather?lat=37.37&lon=126.72&units=metric",

  },

  "_method": "GET",

  "_perfKey": "network_XMLHttpRequest_http://api.openweathermap.org/data/2.5/weather?lat=37.3741733&lon=126.7238088&appid=cfc258c75e1da2149c33daffd07a911d&units=metric",

  "_performanceLogger": PerformanceLogger {

   "_closed": false,

   "_extras": Object {},

   "_pointExtras": Object {},

   "_points": Object {

    "initializeCore_end": 20853097.040238,

    "initializeCore_start": 20853009.923584,

   },

   "_timespans": Object {

    "network_XMLHttpRequest_http://192.168.55.92:19000/logs": Object {

     "endExtras": undefined,

     "endTime": 20854692.508852,

     "startExtras": undefined,

     "startTime": 20854622.417814,

     "totalTime": 70.09103799983859,

    },

    "network_XMLHttpRequest_http://192.168.55.92:19000/symbolicate": Object {

     "endExtras": undefined,

     "endTime": 20854628.720853,

     "startExtras": undefined,

     "startTime": 20854212.895968,

     "totalTime": 415.8248849995434,

    },

    "network_XMLHttpRequest_http://api.openweathermap.org/data/2.5/weather?lat=37.3741733&lon=126.7238088&appid=cfc258c75e1da2149c33daffd07a911d&units=metric": Object {

     "endExtras": undefined,

     "endTime": 20859538.761964,

     "startExtras": undefined,

     "startTime": 20858836.69835,

     "totalTime": 702.063613999635,

    },

    "network_XMLHttpRequest_https://firebase.googleapis.com/v1alpha/projects/-/apps/1:786794299484:web:399d6ecb370815443e2699/webConfig": Object {

     "endExtras": undefined,

     "endTime": 20855853.771198,

     "startExtras": undefined,

     "startTime": 20854626.406199,

     "totalTime": 1227.364998999983,

    },

   },

  },

  "_requestId": null,

  "_response": "{\"coord\":{\"lon\":126.7238,\"lat\":37.3742},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01d\"}],\"base\":\"stations\",\"main\":{\"temp\":1.41,\"feels_like\":-0.04,\"temp_min\":0.05,\"temp_max\":4.02,\"pressure\":1035,\"humidity\":24,\"sea_level\":1035,\"grnd_level\":1035},\"visibility\":10000,\"wind\":{\"speed\":1.43,\"deg\":315,\"gust\":1.5},\"clouds\":{\"all\":7},\"dt\":1676954506,\"sys\":{\"type\":1,\"id\":8105,\"country\":\"KR\",\"sunrise\":1676931371,\"sunset\":1676971066},\"timezone\":32400,\"id\":1843564,\"name\":\"Incheon\",\"cod\":200}",

  "_responseType": "",

  "_sent": true,

  "_subscriptions": Array [],

  "_timedOut": false,

  "_trackingName": "unknown",

  "_url": "http://api.openweathermap.org/data/2.5/weather?lat=37.3741733&lon=126.7238088&appid=cfc258c75e1da2149c33daffd07a911d&units=metric",  

  "readyState": 4,

  "responseHeaders": Object {

   "Access-Control-Allow-Credentials": "true",

   "Access-Control-Allow-Methods": "GET, POST",

   "Access-Control-Allow-Origin": "*",

   "Connection": "keep-alive",

   "Content-Length": "509",

   "Content-Type": "application/json; charset=utf-8",

   "Date": "Tue, 21 Feb 2023 04:41:46 GMT",

   "Server": "openresty",

   "X-Cache-Key": "/data/2.5/weather?lat=37.37&lon=126.72&units=metric",

  },

  "responseURL": "http://api.openweathermap.org/data/2.5/weather?lat=37.3741733&lon=126.7238088&appid=cfc258c75e1da2149c33daffd07a911d&units=metric",

  "status": 200,

  "timeout": 0,

  "upload": XMLHttpRequestEventTarget {},

  "withCredentials": true,

 },

 "status": 200,

 "statusText": undefined,

}

1.41

Clear






취소
 공유
취소
댓글 0
댓글 알림
나의얼굴