planetoftheweb / sassbootstrap

A repository for a course on using bootstrap with sass
MIT License
20 stars 27 forks source link

Refused to apply style from style.css because its MIME type ('text/html') is not a supported #2

Closed Rachidelmahmoudi closed 4 years ago

Rachidelmahmoudi commented 4 years ago

Hi. When I run the npm start in my local I get this error. The server is runing nice it does not say any issue. So the project is not reading its css. That the screenshot of error Best regards. Sans titre11

screencapture-localhost-8080-2020-05-03-12_19_13

planetoftheweb commented 4 years ago

Can you be more specific...Which branch is this happening in? This error usually means that the file can't be found, so check the links to the file, also quit your terminal or restart vscode again.

berdachuk commented 4 years ago

Hi, I have the same problem with LTS node version: node v12.18.2 (npm v6.14.5). Seems that node-sass doest generate output CSS files, such as there is missing "/css/style.css" in the dist folder

planetoftheweb commented 4 years ago

This issue is talked about and solved in #1. TLDR. npm install on the master branch, which is always a good idea anyways.