Base solution for your next web application
Open Closed

Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. #7742


User avatar
0
farhantufail created

Hi,Ive downloaded new angular project of latest version that is 7.2.3. when i run my project, I'm getting this error.Please guide me solve this problem.Thanks
image.png


3 Answer(s)
  • User Avatar
    0
    musa.demir created
  • User Avatar
    0
    farhantufail created

    Thanks.Issue solved.

    work around

    I've solved issue by changing .min.css to .css in dynamicresourceHelper.ts of these files.

    1. metronic-customize-angular.min.css -> to -> metronic-customize-angular.css

    2. /styles/metronic-customize.min.css' -> to -> /styles/metronic-customize.css'

    3. /css/style.bundle.min.css -> to -> /css/style.bundle.css

    4. themes/' + theme + '/metronic-customize.min.css -> to -> themes/' + theme + '/metronic-customize.css

  • User Avatar
    0
    musa.demir created

    Using minified files is better. Can you run gulp build command on terminal and recreate these minified files.