Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/395.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript React引导组件在部署到Heroku时未显示_Javascript_Reactjs_Heroku_React Bootstrap_Mern - Fatal编程技术网

Javascript React引导组件在部署到Heroku时未显示

Javascript React引导组件在部署到Heroku时未显示,javascript,reactjs,heroku,react-bootstrap,mern,Javascript,Reactjs,Heroku,React Bootstrap,Mern,我有这个项目在localHost上工作,没有任何问题,我相信这是由于控制台错误造成的: The stylesheet https://fcclibaryproject.herokuapp.com/static/css/2.de424728.chunk.css was not loaded because its MIME type, "text/html", is not "text/css". fcclibaryproject.herokuapp.com The stylesheet http

我有这个项目在localHost上工作,没有任何问题,我相信这是由于控制台错误造成的:

The stylesheet https://fcclibaryproject.herokuapp.com/static/css/2.de424728.chunk.css was not loaded because its MIME type, "text/html", is not "text/css". fcclibaryproject.herokuapp.com
The stylesheet https://fcclibaryproject.herokuapp.com/static/css/main.5deba5b1.chunk.css was not loaded because its MIME type, "text/html", is not "text/css". fcclibaryproject.herokuapp.com
SyntaxError: expected expression, got '<'
2.bcc2d95b.chunk.js:1
SyntaxError: expected expression, got '<'
main.b2182094.chunk.js:1
样式表https://fcclibaryproject.herokuapp.com/static/css/2.de424728.chunk.css 未加载,因为其MIME类型“text/html”不是“text/css”。fcclibaryproject.herokuapp.com
样式表https://fcclibaryproject.herokuapp.com/static/css/main.5deba5b1.chunk.css 未加载,因为其MIME类型“text/html”不是“text/css”。fcclibaryproject.herokuapp.com

SyntaxError:应为表达式,因为您的javascript包未正确发送。这就是为什么他们没有js代码,而是使用index.html代码。您好,谢谢您的回复!我从/client/build发送静态页面的方式与我在其他项目中的发送方式完全相同。我很感谢您的回复,但我不确定我应该从这里走到哪里,index.html是为我的上一个项目提供的,让react应用程序呈现到ITI中如果我没有错,我相信您已经在某个地方编写了一个脚本,在从浏览器到服务器的任何文件请求中,您只发送index.html文件。我看到您的应用程序已启动并正在运行。你已经解决了。很好。是的,我必须添加一个应用程序。使用该应用程序可以正确地断开。非常感谢您的帮助!