Я использую Laravel 6. После установки ui vue --auth Я не могу скомпилировать файлы SASS, используя npm run watch . Я получил длинный список ошибок:
ERROR in ./resources/sass/app.scss
Module build failed (from ./node_modules/css-loader/index.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
ValidationError: Invalid options object. Sass Loader has been initialized using an options
object that does not match the API schema.
- options has an unknown property 'outputStyle'. These properties are valid:
object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }
at validate (/Applications/MAMP/htdocs/blog/node_modules/sass-loader/node_modules/schema-
utils/dist/validate.js:85:11)
at Object.loader (/Applications/MAMP/htdocs/blog/node_modules/sass-
loader/dist/index.js:36:28)
at /Applications/MAMP/htdocs/blog/node_modules/webpack/lib/NormalModule.js:316:20
at /Applications/MAMP/htdocs/blog/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Applications/MAMP/htdocs/blog/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at runSyncOrAsync (/Applications/MAMP/htdocs/blog/node_modules/loader-
runner/lib/LoaderRunner.js:143:3)
at iterateNormalLoaders (/Applications/MAMP/htdocs/blog/node_modules/loader-
runner/lib/LoaderRunner.js:232:2)
at /Applications/MAMP/htdocs/blog/node_modules/loader-runner/lib/LoaderRunner.js:205:4
at /Applications/MAMP/htdocs/blog/node_modules/enhanced-
resolve/lib/CachedInputFileSystem.js:85:15
at processTicksAndRejections (internal/process/task_queues.js:79:11)
@ ./resources/sass/app.scss
Мой пакет. json Файл выглядит следующим образом:
"devDependencies": {
"axios": "^0.19",
"bootstrap": "^4.0.0",
"cross-env": "^5.1",
"jquery": "^3.2",
"laravel-mix": "^4.0.7",
"lodash": "^4.17.13",
"popper.js": "^1.12",
"resolve-url-loader": "^2.3.1",
"sass": "^1.20.1",
"sass-loader": "^8.0.0",
"vue": "^2.5.17",
"vue-template-compiler": "^2.6.10",
"webpack": "^4.42.0"
}
Мой webpack.mix. js
const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
Я уже удалил node_modules и переустановил его, но не смог решить проблему.