I'm working on an angular project, for which I'm trying to apply a certain css that was provided to me. This css is provided with the js file, tarteaucitron.js
So I've added the tarteaucitron.css
in my angular.json
in the styles
part
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/font-awesome/css/font-awesome.min.css",
"node_modules/animate.css/animate.min.css",
"src/assets/tarteaucitron/css/tarteaucitron.css", // this is where I added the css
"src/styles.scss"
],
Yet I'm having this error in my chrome debugging console
Refused to apply style from 'http://localhost:4200/css/tarteaucitron.css?v=20181023' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Can anyone explain, please?
Update
I've used the following answer but to no avail and no, the solution I received is closed to my problem but the solution is not working in my case.