Angular 6 - Refused to apply style from '…' because its MIME type ('text/html') is not a supported stylesheet
问题 Trying to upgrade to Angular 6 and got the below error when I referred the below in index.html: Refused to apply style from 'https://localhost:44394/~/assets/primengcss/themes/omega//theme.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 回答1: Found the answer (at least worked for me), after some digging around: Looks like inAngular 6 we need to include any external CSS (like bootstrap, fontawesome, Primeng etc.,) to the