I am trying to upload scss.liquid file using api. it gets uploaded to theme successfully but when try to load it it gives error regarding MIME type.
"because its MIME type ('text/plain') is not a supported stylesheet MIME type"
When i open its public url in browser i got -> "Failed to compile SCSS file".
When i go to theme -> edit code and save that particular file without making any changes it gets loaded successfully and works perfectly fine.
Any Suggestions would be great on this.
Could it be the encoding of the file an issue? So then when you open it in the Shopify's code editor and save it, the encoding is corrected?
Would you be able to try creating the asset and send me the X-Request-Id from the response headers? That with the gist you provided should give me a clearer picture of what's going on.
This is the request id.
I have also added full headers in gist https://gist.github.com/little-isaac/df59ad5cf0f3240388fe242adeab071a
You can check it as well.
Sorry for the wait. Have you tried removing the `@charset` expression from the top of the file? I'm not very well versed in themes, but there definitely seems to be some kind of encoding issue on our end which I can see in my logs (we're expecting something on our end to be a byte string but it's UTF-8 instead). That doesn't mean you need to set another charset necessarily, so just try without that for now.
|an hour ago|
|2 hours ago|
|3 hours ago|
|4 hours ago|