Answers for "was not loaded because its mime type, “text/html”, is not “text/css”. react"

0

was not loaded because its mime type, “text/html”, is not “text/css”. react

<!--Reason for the error is,

you are allowed to access only public directory when its served on browser, so

-> First ../src/css/ by this way you can't access the file , it will consider this as route and try to give you html

-> Second , This is not the proper way to include css files : -->

<link rel="stylesheet" type="text/css" href="../src/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="../src/css/demo.css" />
<link rel="stylesheet" type="text/css" href="../src/css/component.css" />
Posted by: Guest on October-13-2021

Code answers related to "was not loaded because its mime type, “text/html”, is not “text/css”. react"

Browse Popular Code Answers by Language