Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

Refused to apply style from '...' on Slate beta.14 #970

Closed JulienHe closed 5 years ago

JulienHe commented 5 years ago

Problem

screen shot 2019-02-04 at 14 25 32

This is what I have in my stylesheet.

code

This is the problem I encounter right now. I know I'm not the only one to have it. Slate version: beta.14. Node version : v10.7 Yarn version: 1.13.0

Does anyone have any suggestions ?

Also my regular scss is working well, I just need to have the .scss.liquid to have my images as background image. If you have any other solution, please help!

Additional information

I work on local https://localhost:3000/?_fd=0 and my ssl is set.

JulienHe commented 5 years ago

Found the issue. Apparently I can't have &--, is it normal?

jonathanmoore commented 5 years ago

That's 100% normal. The .scss.liquid files get uploaded to Shopify's servers so that they can render both the liquid and SCSS. Shopify's fork of SCSS is based on the older 3.2 version of Sass prior to the introduction of BEM style nesting.

If you want to take advantage of the latest, you'll need to use Slate's local SCSS processing free of all Liquid.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.