当前位置: 动力学知识库 > 问答 > 编程问答 >

Firebase 2 core module failing to import (web)

问题描述:

I'm trying to import the core module from firebase but it looks like something is wrong with what I''m doing. Currently I'm importing it as:

import firebase from 'firebase'

With this in my app I do not get the app interface, however, if I do:

import firebase from 'firebase/app'

It does work but I'm missing all the other modules as the database modules, I could by pass it just by adding a couple more of imports but I'd like to import the full app since it's a simpler implementation

Thanks for the help!

网友答案:

Try with:

import firebase from 'firebase/firebase-browser'
分享给朋友:
您可能感兴趣的文章:
随机阅读: