简体   繁体   English

当我尝试在线 go 时,索引内容不显示

[英]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.

相关问题 当我再次尝试插入用户名密码时,错误消息不会消失 - The error message does not go away when I try again to insert username password 图像无法在线加载,但当我离线(本地)尝试时可以正常工作,这是为什么? - Images not loading online but works when I try it offline (local), why is this? 当我尝试将 go 转换为另一个 url 时,Puppeteer 返回错误 - Puppeteer returns an error when I try to go to another url 当我尝试存储变量时不起作用? - When I try and store a variable it does not work? 当我尝试从Ajax进行POST时PHP未定义的索引数据 - PHP Undefined index data when I try to POST from Ajax 当我尝试在字段末尾添加索引时为什么会得到 NAN? - Why getting NAN when i try to add index in end of the field? 当我尝试通过索引访问数组元素时,它给了我未定义的 - when i try to access array element by index it gives me undefined 我从 API 获取数组,但是当我尝试在表中显示它时它显示空数组(noob ReactJs) - I GET array from API but when i try show it in the table it show me empty array (noob ReactJs) 单击链接转到包含嵌入内容的页面时,嵌入不显示 - Embed doesnt show up when clicking a link to go to the page with the embedded content 当我尝试使用Javascript OOP样式进行编码时,Append无法正常工作 - Append does not work when I try to code in Javascript OOP style
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM