Sass::SyntaxError Undefined Variable [duplicate]

不羁岁月 提交于 2019-12-01 00:23:48

You import scss file with wrong name in application.css.scss:

replace: @import "configuration";

with: @import "_configuration";

or rename your _configuration.css.scss file to configuration.css.scss

So I bumped into this and wanted to give a more precise answer:

Any @imported file in the chain downstream from a non-underscore named file will break with Sass::SyntaxError Undefined Variable.

With Sass, if you want to override variables, you must ensure you use an uninterrupted chain of underscored files.

It's as simple as that, though sometimes very easy to pass by!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!