I am new to coreui and I have a simple angular test app and I get the following error
Refused to apply style from ‘http://localhost:4200/node_modules/@coreui/coreui/dist/css/coreui.min.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. [http://localhost:4200/]
Does anyone know how to solve it?
Thank you very much in advance
This error was caused because I had a
element in my index.html
Yes, if you use new files with different level folders, will cause that issue. So in every new file, with a different level folder against the root, you will must to change that element.
The faster option that I found, was create a var ($ in php) and then include the php. file that I use for the var.
In my case, I use 1 “template” file, and then in every new file, I use one “init” file that include the template, the connection, etc. In that form every new page will have the same format, plugins, etc… And then, if I need to change samething in the “head” or in any part of the page, its will resolve only with the change in the template folder.