reactjs-拒绝从css应用样式,因为其mime类型(';text/html';)不受支持

reactjs-拒绝从css应用样式,因为其mime类型(';text/html';)不受支持,reactjs,Reactjs,我的reactjs项目出现以下错误。我已经显示了我的文件夹结构 Refused to apply style from 'http://localhost:8093/css/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 您可以在“index.js”中导入该文件,而不是直接将其添加到“index

我的reactjs项目出现以下错误。我已经显示了我的文件夹结构

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

您可以在“index.js”中导入该文件,而不是直接将其添加到“index.html”中,
它对我有用。

可能的副本同意副本建议。tldr:css文件中可能有css代码以外的内容(注释是最可能的候选内容)。我看到了该链接,但这并没有解决我的问题。如果副本不适用,请发布css文件的内容以供审阅。css文件当前为空。