G
G
Ghoulll2020-02-18 16:20:32
Angular
Ghoulll, 2020-02-18 16:20:32

Cause of production build errors in Angular?

There are no errors when assembling the project, everything is fine. But, when everything is assembled, I try to open the index.html file and errors fly out:

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.


What is the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2020-02-18
@Ghoulll

What server are you using to open the project? in index.html present?
<base href="/">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question