Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
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


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

    I could not reproduce your problem

    Can you please follow that solutions? https://github.com/froala/angular-froala/issues/170#issuecomment-386117678 or https://stackoverflow.com/a/48270432/9988758

  • 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.