Express server not loading my stylesheet
Hello guys, sorry to disturb you all; I try to build a small server using express; my html file is being delivered but the stylesheet related to it isn't... I don't understand why, I'm having the following error in the browser:
Refused to apply style from 'http://localhost:8080/styles/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Here is my code:
I don't understand, what is the problem here please; the link in my html file is correct but when I open it with live server it works... what is my mistake here please1 Reply
ah I wrongly set up the file path for public