Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
警告";它看起来像你';重新使用Firebase JS SDK的开发版本。”;_Firebase_Firebase Realtime Database_Warnings_Google Cloud Cdn_Browser Console - Fatal编程技术网

警告";它看起来像你';重新使用Firebase JS SDK的开发版本。”;

警告";它看起来像你';重新使用Firebase JS SDK的开发版本。”;,firebase,firebase-realtime-database,warnings,google-cloud-cdn,browser-console,Firebase,Firebase Realtime Database,Warnings,Google Cloud Cdn,Browser Console,目前我收到一条警告: It looks like you're using the development build of the Firebase JS SDK. When deploying Firebase apps to production, it is advisable to only import the individual SDK components you intend to use. For the CDN builds, these are available i

目前我收到一条警告:

It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.

For the CDN builds, these are available in the following manner
(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):

https://www.gstatic.com/firebasejs/5.0.0/firebase-<PACKAGE>.js
看起来您正在使用Firebase JS SDK的开发版本。
将Firebase应用程序部署到生产环境时,建议只导入
您打算使用的单个SDK组件。
对于CDN构建,可以通过以下方式获得
(替换为组件的名称-即身份验证、数据库等):
https://www.gstatic.com/firebasejs/5.0.0/firebase-.js
我已经浏览了几个与此问题相关的链接,但即使遵循了所有解决方案,我也无法删除错误。 正如描述所说,使用给定的链接和我正在使用的组件的名称。我已经包括了我需要的链接,但我仍然看到了警告

我甚至试着把Firebase网站上的所有链接都包括进去,但我还是看到了

目前我只使用Firebase实时数据库,但在使用CMD创建Firebase init时,我包含了函数、托管、存储和数据库

<script src="https://www.gstatic.com/firebasejs/5.0.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.0/firebase.js"></script>

我甚至尝试将版本从5.0.0更改为5.4.0,但没有用。
如何解决这个问题?

我刚刚通过添加两个脚本解决了这个问题


我做了建议的更改,但仍然收到警告。事实证明,我曾经两次导入firebase。确保您也没有将其导入其他地方。(不包括脚本包含的导入语句)