突然之间,我的 grunt-contrib-sass 任务在构建时抛出Could not find an option named "sourcemap"
错误。我目前安装了 sass 3.5.1 并使用 grunt-contrib-sass 1.0.0。任何想法可能导致这种情况?这是我看到的输出:
Could not find an option named "sourcemap".
Usage: dart-sass <input>
-s, --style Output style.
[expanded (default)]
-c, --[no-]color Whether to emit terminal colors.
--[no-]trace Print full Dart stack traces for exceptions.
-h, --help Print this usage information.
--version Print the version of Dart Sass.
Warning: Exited with error code 64 Used --force, continuing.
Done, but with warnings.
Process terminated with code 0.
而且,这不是编译CSS。思潮?
我通过删除node_modules文件夹并让Visual Studio重新填充此文件夹来解决此问题。
很可能你有一个旧的sass引擎
试试sudo gem install sass