Skip to content

Refused to apply style #12361

@lvalenti42

Description

@lvalenti42

Hello I have a problem with import of file css.
I imported
<link href="../node_modules/@angular/material/prebuilt-themes/indigo-pink.css" rel="stylesheet"> in the index.html but I have this error =>

Refused to apply style from 'http://localhost:8081/node_modules/@angular/material/prebuilt-themes/indigo-pink.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

How do I have to make it work please?
I don't have angular.json or angular-cli.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions