Refused to apply style from 'http://localhost:8100/build/main.css' because its MIME type ('text/html') is not a supported

My ionic build was working perfectly up until I wanted to test on my iPhone so I stopped my server and then did a ionic serve --address localhost and I noticed that my stylesheet wasn’t loading anymore… so I killed the server again went back to ionic serve and the error persisted…

(index):1 Refused to apply style from ‘http://localhost:8100/build/main.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I noticed that inside my www/build folder main.css doesn’t exist… only main.js exists… is this the problem?

I’ve tried clearing the the cache on localhost:8100 and rebuilding the project but the error remains…

Any ideas? I’m pretty much stuck until this gets resolved :frowning:

2 Likes