Firebase-Admin, importing it to react application throws Module not found error

前端 未结 1 1913
时光说笑
时光说笑 2020-12-11 20:56

I\'m developming simple React application which uses firebase admin.

I have generated react application by using create react app.

Then I have installed

相关标签:
1条回答
  • 2020-12-11 21:35

    Admin SDKs cannot be used in client-side environments. That includes web browsers. Admin SDKs can and should only be used in privileged server environments owned or managed by the developers of a Firebase app. You should use the Firebase web SDK in your React app.

    0 讨论(0)
提交回复
热议问题