MIME type ('text/html') is not a supported stylesheet MIME type

前端 未结 4 1710
囚心锁ツ
囚心锁ツ 2021-02-19 16:08

I have tried almost every solution for the problem which includes. giving type for use of app.use(expre

4条回答
  •  -上瘾入骨i
    2021-02-19 16:10

    The problem in my case was the wrong path.

    After running npm run build

    React created static files, but in index.html was something like href="/static/css/main.39c237f9.chunk.css" so I added a dot at the beginning of the path, becoming href="./static/css/main.39c237f9.chunk.css.

提交回复
热议问题