firebase.intializeApp is not a function

萝らか妹 提交于 2019-12-05 05:09:17

You have a typo in firebase.intializeApp.

It should be initializeApp.

var app = firebase.initializeApp({...});

See the docs here: https://www.npmjs.com/package/firebase

You need to require the 'app' when in the browser context like so...

const firebase = require('firebase/app');

const app = firebase.initializeApp({ ... });

Oops! You misspelled "initialize". But pho3nixf1re said it best.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!