Heroku显示空白页

时间:2019-03-11 09:16:46

标签: javascript node.js express heroku

将应用程序部署到heroku时,出现空白页面,并显示以下错误:

链接:https://jenlky-shopping-cart.herokuapp.com/

Refused to apply style from 'https://jenlky-shopping-cart.herokuapp.com/static/css/main.bbad26e2.chunk.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 2.65283897.chunk.js:1 

Failed to load resource: the server responded with a status of 404 (Not Found) 2.65283897.chunk.js:1 

Failed to load resource: the server responded with a status of 404 (Not Found) main.221452bc.chunk.js:1 

Failed to load resource: the server responded with a status of 404 (Not Found) 2.65283897.chunk.js:1 

Failed to load resource: the server responded with a status of 404 (Not Found) main.221452bc.chunk.js:1 

Failed to load resource: the server responded with a status of 404 (Not Found) favicon.ico:1

Refused to apply style from 'https://jenlky-shopping-cart.herokuapp.com/static/css/main.bbad26e2.chunk.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

manifest.json:1 Failed to load resource: the server responded with a status of 404 (Not Found)

manifest.json:1 Manifest: Line: 1, column: 1, Unexpected token.

heroku local也会产生空白页,错误更少:

Refused to apply style from 'http://localhost:5000/static/css/main.d60d3cf9.chunk.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

4localhost/:1 GET http://localhost:5000/static/js/1.b7d12b63.chunk.js net::ERR_ABORTED 404 (Not Found)

manifest.json:1 GET http://localhost:5000/manifest.json 404 (Not Found)

manifest.json:1 Manifest: Line: 1, column: 1, Unexpected token.

有什么办法可以解决吗?

0 个答案:

没有答案