
실시간 데이터 베이스에 data.json 파일 가져오기 한 후에
MainPage 코드 넣어서 에러가 나길래 (강의안 관련 오류인지는 정확하게는 모르고 오류나길래 아래 부분을 진행했어요..)
강의안에 있는
yarn remove firebase
yarn add firebase@9.6.11 을 순서대로 입력하였습니다.
엑스포를 다시 시작했는데 안됩니다.
도움 부탁드립니다.



작성한 코드 및 에러 메세지
TransformError SyntaxError: C:\Users\united\Desktop\Sparta_study\sparta-myhoneytip-gina\firebaseConfig.js: Unexpected token, expected "," (17:4)
15 | projectId: "sparta-myhoneytip-gina-605f9",
16 | databaseURL: "https://sparta-myhoneytip-gina-605f9-default-rtdb.asia-southeast1.firebasedatabase.app/"
> 17 | storageBucket: "sparta-myhoneytip-gina-605f9.appspot.com",
| ^
18 | messagingSenderId: "700728357507",
19 | appId: "1:700728357507:web:765118abf7f010501e21b6",
20 | measurementId: "G-2NM9324XPD"
in showCompileError
in <unknown>
in <unknown>
in __guard
in callFunctionReturnFlushedQueue
* 복원된 기록
Microsoft Windows [Version 10.0.19042.2130]
(c) Microsoft Corporation. All rights reserved.
C:\Users\united\Desktop\Sparta_study>
C:\Users\united\Desktop\Sparta_study>yarn remove firebase
yarn remove v1.22.19
warning package.json: No license field
[1/2] Removing module firebase...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
C:\Users\united\Desktop\Sparta_study>yarn add firebase@9.6.11
yarn add v1.22.19
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
warning firebase > @firebase/polyfill > core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @react-navigation/native@6.0.13" has unmet peer dependency "react@*".
warning " > @react-navigation/native@6.0.13" has unmet peer dependency "react-native@*".
warning "@react-navigation/native > @react-navigation/core@6.4.0" has unmet peer dependency "react@*".
warning "expo-linking > expo-constants@13.2.4" has unmet peer dependency "expo@*".
warning " > expo-location@14.3.0" has unmet peer dependency "expo@*".
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 64 new dependencies.
info Direct dependencies
└─ firebase@9.6.11
info All dependencies
├─ @firebase/analytics-compat@0.1.9
├─ @firebase/analytics-types@0.7.0
├─ @firebase/app-check-compat@0.2.6
├─ @firebase/app-check-interop-types@0.1.0
├─ @firebase/app-check-types@0.4.0
├─ @firebase/app-compat@0.1.22
├─ @firebase/auth-compat@0.2.12
├─ @firebase/auth-types@0.11.0
├─ @firebase/database-compat@0.1.8
├─ @firebase/database-types@0.9.7
├─ @firebase/firestore-compat@0.1.17
├─ @firebase/firestore-types@2.5.0
├─ @firebase/functions-compat@0.1.12
├─ @firebase/functions-types@0.5.0
├─ @firebase/messaging-compat@0.1.12
├─ @firebase/performance-compat@0.1.8
├─ @firebase/performance-types@0.1.0
├─ @firebase/polyfill@0.3.36
├─ @firebase/remote-config-compat@0.1.8
├─ @firebase/remote-config-types@0.2.0
├─ @firebase/storage-compat@0.1.13
├─ @firebase/storage-types@0.6.0
├─ @firebase/webchannel-wrapper@0.6.1
├─ @grpc/grpc-js@1.7.3
├─ @grpc/proto-loader@0.6.13
├─ @protobufjs/aspromise@1.1.2
├─ ansi-regex@5.0.1
├─ cliui@7.0.4
├─ core-js@3.6.5
├─ core-util-is@1.0.3
├─ emoji-regex@8.0.0
├─ escalade@3.1.1
├─ faye-websocket@0.11.4
├─ firebase@9.6.11
├─ get-caller-file@2.0.5
├─ http-parser-js@0.5.8
├─ immediate@3.0.6
├─ is-fullwidth-code-point@3.0.0
├─ isarray@1.0.0
├─ jszip@3.10.1
├─ lie@3.3.0
├─ pako@1.0.11
├─ process-nextick-args@2.0.1
├─ promise-polyfill@8.1.3
├─ protobufjs@6.11.3
├─ readable-stream@2.3.7
├─ require-directory@2.1.1
├─ rimraf@3.0.2
├─ safe-buffer@5.1.2
├─ selenium-webdriver@4.0.0-rc-1
├─ setimmediate@1.0.5
├─ string_decoder@1.1.1
├─ string-width@4.2.3
├─ tr46@0.0.3
├─ util-deprecate@1.0.2
├─ webidl-conversions@3.0.1
├─ websocket-driver@0.7.4
├─ websocket-extensions@0.1.4
├─ whatwg-fetch@2.0.4
├─ whatwg-url@5.0.0
├─ wrap-ansi@7.0.0
├─ ws@8.10.0
├─ y18n@5.0.8
└─ yargs-parser@20.2.9
Done in 183.78s.
C:\Users\united\Desktop\Sparta_study>expo start -c
Starting project at C:\Users\united\Desktop\Sparta_study
Unable to find expo in this project - have you run yarn / npm install yet?
C:\Users\united\Desktop\Sparta_study>expo start c
The expected package.json path: C:\Users\united\Desktop\Sparta_study\c\package.json does not exist
C:\Users\united\Desktop\Sparta_study>
