Open SaroGFX opened 5 years ago
I had the same issue, but once I fixed the SSL certificate it fixed this issue as well. Fixed the SSL issue by running mkcert -install
I had the same issue, but once I fixed the SSL certificate it fixed this issue as well. Fixed the SSL issue by running mkcert -install
Thank you Pless84. I tried to run mkcert -install in the theme directory, but it promted me for a password. I accidently left it blank and now it's blocked. What password am I supposed to use and how can I recover and retry?
The password is your user/root password
@pless84 I think I managed to do a clean install.
I still get the error in Chrome, but no error in Firefox (although I have to say I didn't do any prior testing)
But dispite showing no error, it's not actually loading the CSS from the theme.scss.liquid
Same problem for me and my SSL is working perfectly.
The stylesheet that is not working is reported as being a different mime type.
The stylesheet that is not working is the one that is prefetched.
Once I switch the prefetch link to be a traditional stylesheet link the success rains down!
Problem
Refused to apply style from 'https://192.168.1.36:3001/layout.theme.styleLiquid.scss.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Replication steps
yarn upgrade --latest @shopify/slate-tools
yarn start
The code
style-tags.liquid
themes.scss.liquid
theme.liquid
Please advise.