且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

节点/表达-拒绝应用样式,因为它的MIME类型('text/html')

更新时间:2021-11-08 22:15:46

问题是文件命名不正确的结果.我们的学生在style.css文件的末尾有一个空格.有一些提示,第一个是文本编辑器中缺少语法突出显示功能,第二个是文本编辑器检测到其他新创建的css文件的文件类型,但未检测到命名不正确的文件.删除空间解决了该问题.

The problem is the result of an improperly named file. Our student had a space at the end of the style.css file. There were a few tip offs to this, the first was a lack of syntax highlighting in the text editor, and the second was the text editor detecting the filetype for other newly created css files but not the improperly named file. Removing the space resolved the issue.

谢谢slebetman帮我指出正确的方向.

Thank you slebetman for your help in pointing me in the right direction.