警告 "It looks like you're using the development build of the Firebase JS SDK."

Warning "It looks like you're using the development build of the Firebase JS SDK."

目前我收到警告:

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

我已经解决了几个与此问题相关的 links,但即使遵循了他们的所有解决方案,我也无法消除错误。 正如描述所说,使用给定的 link 和我正在使用的组件的名称。我已经包括了我需要的 links,但我仍然看到警告。

我什至尝试包含 Firebase 网站中给出的所有 link,但我仍然看到了。

目前我只使用 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,但没有用。 如何解决?

刚刚加了两个脚本解决了

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

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