Roots Discourse

Ionic error MIME type (‘text/html’) not a supported stylesheet MIME type?


Hello to all,
I am using ionic3 and after build the app i got this error in the browser console
because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled."here is our in hdex.html file tell m anyone how to fix this error?

<!DOCTYPE html>
<html lang="en" dir="ltr">
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#4e8ef7">

<!-- add to homescreen for ios -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">

<!-- cordova.js required for cordova apps (remove if not needed) -->
<script src="cordova.js"></script>

<link href="build/main.css" rel="stylesheet">


<!-- Ionic's root component and where the app will load -->

<!-- The polyfills js is generated during the build process -->
<script src="build/polyfills.js"></script>

<!-- The vendor js is generated during the build process
     It contains all of the dependencies in node_modules -->
<script src="build/vendor.js"></script>

<!-- The main bundle js is generated during the build process -->
<script src="build/main.js"></script>


Did you search for this topic before posting? The latest post to Discourse — besides this one — is nearly word for word this exact topic.



sir i am not search in this site but in the another site i have search and i got error after add yarn start
’yarn’ is not recognized as an internal or external ?


tell m sir how to fix this error?

unlisted #6


Unfortunately on this forum we can only support Sage, Bedrock, and Trellis. It looks like you’re having difficulty with different product, so I recommend reaching out to that product’s support team.