Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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" />
 
PREVIOUS NEXT
Tagged: #loaded #mime #react
ADD COMMENT
Topic
Name
7+4 =