Firefox中的Angular 8 ng-build抛出MIME错误,Chrome中的404错误 [英] Angular 8 ng-build throwing MIME error in Firefox and 404 in Chrome

查看:91
本文介绍了Firefox中的Angular 8 ng-build抛出MIME错误,Chrome中的404错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在github页面上部署我的Angular应用程序后,它将无法在www.https://www.lorem.com/在线呈现,该页面只是空白,并且我在控制台中有错误.

After deploying my Angular app on github pages it will not render online at www.https://www.lorem.com/, the page is just blank and i have errors in the console.

在Firefox上显示:

On firefox it says:

在Chrome上显示:

On Chrome it says:

知道可能是什么问题吗?

Any idea what the issue could be?

推荐答案

看来基本href出现问题,原因是www.illiteratiartandcowork.com/theotherspace/中没有文件,请尝试将索引中的base href="/theotherspace/"更改为base href="/". github上的docs文件夹中的html.

it looks like a problem with base href, cause there are no files in www.illiteratiartandcowork.com/theotherspace/, try to change base href="/theotherspace/" to base href="/" in your index.html in your docs folder on github.

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

From this url I get css file correctly (it also works for other files) https://www.illiteratiartandcowork.com/styles.a400f1df2c914132955e.css

这篇关于Firefox中的Angular 8 ng-build抛出MIME错误,Chrome中的404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆