@Ghoulll

Причина ошибок в продакшн сборке в Angular?

При сборке проекта ошибок нет, собирает все нормально. Но, когда все собрано, пытаюсь открыть файл index.html и вылетают ошибки:
1. Refused to apply style from 'http://localhost:63342/styles.71f283d32a5001186b60.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
runtime-es2015.e8fee9b3f41bd397a421.js:1 
2. Failed to load resource: the server responded with a status of 404 (Not Found)
polyfills-es2015.e7658c0ba5ba06e94fad.js:1 
3. Failed to load resource: the server responded with a status of 404 (Not Found)
main-es2015.78106dcbd51583945c65.js:1 
4. Failed to load resource: the server responded with a status of 404 (Not Found)
scripts.5b7eda2489c90cddfd8f.js:1 
5. Failed to load resource: the server responded with a status of 404 (Not Found)
index.html:1 
6. Refused to apply style from 'http://localhost:63342/styles.71f283d32a5001186b60.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.


В чем причина?
  • Вопрос задан
  • 96 просмотров
Решения вопроса 1
Xuxicheta
@Xuxicheta Куратор тега Angular
инженер
С помощью какого сервера вы открываете проект?
<base href="/"> в index.html присуствует?
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы