突然间,我的grunt-contrib-sass任务正在抛出无法在构建中找到名为“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重新填充此文件夹来解决此问题.