Firebase 托管不部署文件

问题描述 投票:0回答:1

我试图部署一个只有 HTML、CSS、JS 和几个图像的基本网页,我之前已经完成了至少 5 次这个过程,但这次没有成功。当我部署时,部署没有显示任何错误,也没有日志,甚至当我运行命令 Firebase 服务时,它工作得很好,但是当部署时没有任何工作,显示了 HTML,但没有 CSS,没有 JS,也没有图像。控制台显示错误,例如“意外的令牌”<'" but the answers from Stack Overflow or any other page didn't work, I inspected the page and check the sources and some of my CSS and JS files weren't there and the ones that were had the HTML, from my index HTML code, in them. I even copy the files of my new project and pasted them in an old project that was running fine, it didn't work, after that I reverted the changes, deployed the old files in the old project and now this one didn't work.

firebase hosting
1个回答
0
投票

我联系了 Firebase 支持,并且第一次基于“意外令牌”<'" they told me that it was a developer mistake. The second time I contacted Firebase support, after I had triple checked everything, They told me that maybe I was using an old version of Firebase CLI, I updated my Firebase CLI, and it works now, both projects, my new one and the old one that stopped working.

© www.soinside.com 2019 - 2024. All rights reserved.