reactjs - 构建时 Electron post-scss webpack 解析器错误
问题描述
这是来自电子反应的样板。我试图包含 scss mixins,但它似乎吐出以下错误:
CssSyntaxError: C:\C:\app\scss\base\_theme.scss:30:17: Unknown word
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser
28 | @mixin themed() {
29 | @each $theme, $map in $themes {
> 30 | .theme--#{$theme} & {
| ^
31 | $theme-map: () !global;
32 | @each $key, $submap in $map {
我已将 postcss-loader 包含在 webpack 中,但错误仍然存在
解决方案
推荐阅读
- mysql - 使用 application.yml 连接到 MySQL
- plot - Maple:带有隐式参数函数的参数图
- r - 在 R 中满足条件时如何转换矩阵中的值?
- unit-testing - 如何模拟单元测试的外部方法
- android - 扩展 Activity 与 AppCompatActivity 之间的区别
- c# - 为什么新图像不可用?
- python - 简单的 xml 请求 (GET)
- tableau-api - Tableau 中的转义详细级别表达式
- android - NullPointerException 在使用片段内的片段创建视图 Kotlin
- reactjs - useEffect 更新,因为 redux 状态发生了变化