Understrap - sass编译错误

时间:2018-03-15 11:11:44

标签: node.js wordpress sass gulp

我想编译主题.scss文件。所以,根据文件,我去了

wp-content\themes\understrap\sass\theme

目录。我打开了_theme.scss文件。我做了更改,保存并且...我收到了一堆错误。我认为首先和主要是

{ [Error: sass\theme.scss
Error: It's not clear which file to import for '@import     "theme/theme_variables"'.
       Candidates:
     theme/_theme_variables.scss
     theme/_theme_variables.css
   Please delete or rename all but one of these files.
    on line 1 of sass/theme.scss
>> @import "theme/theme_variables";  // <--------- Add your variables into     this
   ^
]
  status: 1,
  file: 'C:/xampp/htdocs/under/wp-    content/themes/understrap/sass/theme.scss',
  line: 1,
  column: 1,

我尝试安装node-sass 3.4.1 - 没有帮助。我做错了什么?有人有类似的问题吗?

1 个答案:

答案 0 :(得分:1)

因为这些文件具有相同的名称但扩展名不同,因此无法识别onSubmit1(){ console.log(this.userForm1.value); }

更改

import

@import     "theme/theme_variables"

或两者//不确定它是否可行

@import     "theme/theme_variables.scss"