1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME...

Discussão em 'Angular' iniciado por Karim Ali, Julho 10, 2025.

  1. Karim Ali

    Karim Ali Guest

    I changed tailwind.min.css from href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" to local storage href="./././libs/dave2-shared/src/lib/CSS/tailwind.min.css" path but I get “Refused to apply style from 'http://ui_fb3.sym-tech.loc:4200/libs/dave2-shared/src/lib/CSS/tailwind.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.” error in console in Angular.

    I tried changing type="text/css" and type="text/html" but nothing works.


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8" />
    <title>Setting</title>
    <base href="/setting/" />
    <link href="./././shared/src/tailwind.min.css" rel="stylesheet">
    </head>
    <body>
    <ng-root></ng-root>
    </body>
    </html>

    Continue reading...

Compartilhe esta Página