Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 欠陷阱-sass编译错误_Node.js_Wordpress_Sass_Gulp - Fatal编程技术网

Node.js 欠陷阱-sass编译错误

Node.js 欠陷阱-sass编译错误,node.js,wordpress,sass,gulp,Node.js,Wordpress,Sass,Gulp,我想编译theme.scss文件。所以,根据我去看的文件 wp-content\themes\understrap\sass\theme 目录。我打开了\u theme.scss文件。我做了更改,保存并。。。我犯了很多错误。首先,我认为最主要的是 { [Error: sass\theme.scss Error: It's not clear which file to import for '@import "theme/theme_variables"'. Candid

我想编译theme.scss文件。所以,根据我去看的文件

wp-content\themes\understrap\sass\theme
目录。我打开了
\u 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,
{[错误:sass\theme.scss
错误:不清楚要为“@import”主题/theme_变量”导入哪个文件。
候选人:
theme/\u theme\u variables.scss
theme/\u theme\u variables.css
请删除或重命名除其中一个以外的所有文件。
在sass/theme.scss的第1行

>>@import“theme/theme\u variables”;//是因为文件名相同,但扩展名不同,它无法识别导入的开关

改变

@import“主题/主题变量”

或者两者都是//不确定它是否有效

@import     "theme/theme_variables.scss"
@import     "theme/theme_variables.css"

{[TypeError:这不是一个类型化数组。]消息:“这不是一个类型化数组。”,名称:“TypeError”,堆栈:“TypeError:这不是一个类型化数组。\n在Function.from(native)\n在C:\\xampp\\htdocs\\under\\wp content\\themes\\understrap\\node\u modules\\gulp autoprefixer\\index.js:26:27\n在进程中。\u tickCallback(node.js:368:9)“,”安全性:未定义,“”堆栈:未定义,插件:'gulp autoprefixer',showProperties:true,showStack:true,文件名:'C:\\xampp\\htdocs\\under\\wp content\\themes\\understrap\\sass\\theme.css'}更改为theme_variables.scss后,这意味着您的sass有一些错误。请检查您的文件和结构。我不这么认为。即使我使用简单的{color:red;}也不起作用我想我回答了您最初的问题并解决了最初的问题。我建议您从头开始,重新构建、进行更改、重新构建。或者就新错误提出新问题。
@import     "theme/theme_variables.scss"
@import     "theme/theme_variables.css"