在我的nodeJS项目中突然出现错误。我没有任何升级或更改。 当我写NPM开始在命令行它给这个错误函数可能未在控制指令或其他mixin中定义
ERROR in ./~/css-loader?sourceMap!./~/postcss-loader!./~/sass-loader?
sourceMap&outputStyle=expanded&includePaths[]=c:/TFS/rc1/app/scss&includePaths[]
=c:/TFS/rc1/~/compass-mixins/lib&sourceMap&sourceMapContents=true!./app/scss/_toolkit.scss
Module build failed:
undefined
^
Functions may not be defined within control directives or other mixins.
in c:\TFS\rc1\node_modules\compass-mixins\lib\compass\functions\_lists.scss (line 81, column 3)
@ ./app/scss/_toolkit.scss 4:14-337
我重新安装指南针混入包,但它还是给我看了_lists.scss该文件在81行有一个代码相同error.Then .I删除了它,它给出了同样的错误。我该怎么办?
@if not(function-exists(compact)) {
@function compact($vars...) {
$list:();
@each $var in $vars {
@if $var {
$list: append($list, $var, comma);
}
}
@return $list;
}
}
您在使用LibSass还是官方Ruby Sass? – cimmanon
这是反应JS项目不红宝石project.How我可以检查它是否是libsass或红宝石sass? – user1688401
我并不熟悉您使用的其他任何东西,但对于Unix或Mac OS,在终端中运行'sass -v'至少会确认您已安装Ruby Sass。 – cimmanon