stylesheet not loaded because of mime-type
put your .css file in a folder called public
in your app.js file add the following code:
app.use(express.static('public'));
stylesheet not loaded because of mime-type
put your .css file in a folder called public
in your app.js file add the following code:
app.use(express.static('public'));
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" />
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us