Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.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
Webpack Can';t使用ava导入带有网页包的sass文件_Webpack_Ava - Fatal编程技术网

Webpack Can';t使用ava导入带有网页包的sass文件

Webpack Can';t使用ava导入带有网页包的sass文件,webpack,ava,Webpack,Ava,我正在尝试用ava测试React组件,它也使用webpack。当我尝试从sass导入样式时,ava测试抛出。我怎样才能解决这个问题 import./index.scss' SyntaxError: /src/index.scss: Unexpected token (1:0) > 1 | .wrapper { | ^ 2 | background-color: #fff; 3 | border-radius: 6px; 4 | padding: 4rem;

我正在尝试用ava测试React组件,它也使用webpack。当我尝试从sass导入样式时,ava测试抛出。我怎样才能解决这个问题

import./index.scss'

SyntaxError: /src/index.scss: Unexpected token (1:0)
> 1 | .wrapper {
    | ^
  2 |   background-color: #fff;
  3 |   border-radius: 6px;
  4 |   padding: 4rem;

看到你在Github上打开的问题,尽管有人对你投了反对票,但还是投了赞成票:)