Google Firebase key error

Firebase

Firebase에서 Key값을 "그대로" Copy를 하게 되면

const firebaseConfig = {

  apiKey: "Your app key", //여기에 발급받은 앱 키 넣기 

  authDomain: "reactchat-da039.firebaseapp.com",

  projectId: "reactchat-da039",

  storageBucket: "reactchat-da039.appspot.com",

  messagingSenderId: "242656429239",

  appId: "1:242656429239:web:c521465b36d5cbc662f932"\};

이렇게 Copy 된다. 허나 이대로 paste 하면 오류가 발생하였다.

{

    "apiKey": "Your app key", //여기에 발급받은 앱 키 넣기 

    "authDomain": "reactchat-da039.firebaseapp.com",

    "projectId": "reactchat-da039",

    "storageBucket": "reactchat-da039.appspot.com",

    "messagingSenderId": "242656429239",

    "appId": "1:242656429239:web:c521465b36d5cbc662f932"

  }

key값에 " "를 붙여주어 해결 완료.

+ Recent posts