我在Angular中有一个项目,突然(不进行任何更新)它停止使用npm start
命令进行编译,并开始给我以下错误:ERROR in Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/sass-loader/dist/cjs.js): SassError: Undefined variable: "$percent-full".
在我的组件样式表中,我有这个:
@use '../../../../projects/dynamo/src/dynamo/classes/bases/dimensions' as *;
.width-percent-full {
width: $percent-full;
}
我已经检查了路由,并且在该文件中,我有:
$percent-90: 90%;
$percent-95: 95%;
$percent-full: 100%;
我不知道为什么会这样。