Firefox中的角度8 ng-build抛出MIME错误,Chrome中的404错误

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

在github页面上部署了Angular应用后,它不会在www.https://www.illiteratiartandcowork.com/上在线呈现,该页面只是空白,并且控制台中出现错误。

在Firefox上说:

enter image description here

在Chrome上显示:

enter image description here

任何想法可能是什么问题?

angular github-pages mime
1个回答
0
投票

它看起来像基本href的问题,因为www.illiteratiartandcowork.com/theotherspace/中没有文件,请尝试将github上docs文件夹中index.html中的base href="/theotherspace/"更改为base href="/"

从该网址我可以正确获取css文件(它也适用于其他文件)https://www.illiteratiartandcowork.com/styles.a400f1df2c914132955e.css

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