小编chi*_*ag 的帖子

在 GitHub 页面上部署了我的 Angular 应用程序,但在控制台中的网站上出现错误

我已经在 GitHub 页面上成功发布了我的应用程序,但我的网站没有显示任何内容。

这是我的 GitHub 存储库链接:https : //github.com/chirag299051/Ice-and-Fire

我在控制台中遇到的错误:

inline.318b50c57b4eba3d437b.bundle.js Failed to load resource: the server responded with a status of 404 ()
polyfills.b6b2cd0d4c472ac3ac12.bundle.js Failed to load resource: the server responded with a status of 404 ()
scripts.e2cc764d74d6cb8d1c42.bundle.js Failed to load resource: the server responded with a status of 404 ()
main.54e8c9147109b23af744.bundle.js Failed to load resource: the server responded with a status of 404 ()
styles.a9b0b1037568d3083749.bundle.css Failed to load resource: the server responded with a status of 404 () …
Run Code Online (Sandbox Code Playgroud)

github angular angular-cli-ghpages

2
推荐指数
1
解决办法
3216
查看次数

重新加载在 github 页面上发布的 Angular SPA 时找不到 404 文件

重新加载发布在 gh 页面上的 angular 应用程序时,我收到错误消息。错误是:

404
File not found.
The site configured at this address does not contain the requested file.
Run Code Online (Sandbox Code Playgroud)

我已经使用 ng build --prod 构建了我的应用程序。

Github 存储库: https : //github.com/chirag299051/IceAndFire

Github 页面: https : //chirag299051.github.io/IceAndFire/

我的 app.module.ts 文件包含:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { AboutComponent } from './about/about.component';

import { RouterModule, Routes } from '@angular/router';
import { BookDetailsComponent } …
Run Code Online (Sandbox Code Playgroud)

github nginx github-pages angular ng-build

1
推荐指数
1
解决办法
845
查看次数