我正在 Flutter 中构建一个网络应用程序,试图将照片添加到 firebase 存储。
我遇到了这个错误,大多数帖子都说它通过添加来解决
https://www.gstatic.com/firebasejs/8.2.4/firebase-database.js"
但我有
还有什么可能导致 TypeError: dart.global.firebase.storage is not a function
<body>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.2.4/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/8.2.4/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.4/firebase-firestore.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: …Run Code Online (Sandbox Code Playgroud)