[英]Index content does not show when I try to go online
I was successful deploying the website (I know because the logo icon shows on the tab and I followed the steps carefully) but the content of my website won't show.我成功部署了网站(我知道是因为标签上显示了徽标图标,并且我仔细按照步骤操作),但我的网站内容不会显示。 It's my firs time doing this and I'm pretty sure it's a small thing but I've been stuck for days.
这是我第一次这样做,我很确定这是一件小事,但我已经被困了好几天了。 It's probably in my index.html.
它可能在我的索引中。html。 I'm using angular and firebase.
我正在使用 angular 和 firebase。 please help!
请帮忙!
I've looked at tutorials and of course the firebase documentation.我看过教程,当然还有 firebase 文档。 Seems like it's an sdk issue or maybe the script tags at the end of my index.html.
似乎这是一个 sdk 问题,或者可能是我的 index.html 末尾的脚本标签。
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>F2I</title>
<base href="https://[" f2ifrance.firebaseapp.com/"> <meta name="viewport"
content="width=device-width, initial-scale=1">
<!-- <base href="/"> -->
<link rel="stylesheet" href="https://unpkg.com/bs-stepper/dist/css/bs-stepper.min.css">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<body>
<app-root></app-root>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
<!-- firebase hosting SDK -->
<script src="/__/firebase/init.js"></script>
<!-- Insert these scripts at the bottom of the HTML, but before you use any Firebase services -->
<!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
<script src="/__/firebase/7.0.0/firebase-app.js"></script>
<!-- Add Firebase products that you want to use -->
<script src="/__/firebase/7.0.0/firebase-firestore.js"></script>
<script src="/__/firebase/7.0.0/firebase-storage.js"></script>
</body>
</html>
I'm almost there... I just need to see the content.我快到了……我只需要看看内容。 Here's the error I have on my console and of course I googled it but couldn't find an answer.
这是我在控制台上遇到的错误,当然我用谷歌搜索了它,但找不到答案。 Thanks a lot to anyone who could help.
非常感谢任何可以提供帮助的人。
Uncaught Error: hosting/init-error: Firebase SDK not detected.
未捕获的错误:托管/初始化错误:未检测到 Firebase SDK。 You must include it before /__/firebase/init.js
您必须在 /__/firebase/init.js 之前包含它
The answer is right in the error message: you are including init.js
before the Firebase SDK.错误消息中的答案是正确的:您在
init.js
之前包含了 init.js。 Try this:尝试这个:
<script src="/__/firebase/7.0.0/firebase-app.js"></script>
<script src="/__/firebase/init.js"></script>
<script src="/__/firebase/7.0.0/firebase-firestore.js"></script>
<script src="/__/firebase/7.0.0/firebase-storage.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.