Vue初心者です。
Laravel6でVueを触ろうと思い、npm installをして進めて行くとnpm run watchでこのエラーに遭遇しました。
Uncaught Error: 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? }
確認したこと、疑問
・https://github.com/webpack-contrib/sass-loader/issues/530 npm rebuild node-sass
・https://qiita.com/jigengineer/items/2b15797b850179cb8be0 npm ci
packge.json
1{ 2 "private": true, 3 "scripts": { 4 "dev": "npm run development", 5 "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 "watch": "npm run development -- --watch", 7 "watch-poll": "npm run watch -- --watch-poll", 8 "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 "prod": "npm run production", 10 "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 }, 12 "devDependencies": { 13 "axios": "^0.19", 14 "bootstrap": "^4.0.0", 15 "cross-env": "^5.1", 16 "fibers": "^4.0.2", 17 "jquery": "^3.2", 18 "laravel-mix": "^4.0.7", 19 "lodash": "^4.17.13", 20 "popper.js": "^1.12", 21 "resolve-url-loader": "^2.3.1", 22 "sass": "^1.25.0", 23 "sass-loader": "^8.0.2", 24 "vue": "^2.5.17", 25 "vue-template-compiler": "^2.6.10", 26 "webpack": "^4.41.6" 27 } 28} 29
環境系だと思うので、無理に進めず知恵を貸していただきたいと思い質問することにしました。
よろしくお願いします。
php 7.4
laravel 6.0
node 12.13.1
npm 6.12.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/02/21 09:01
2020/02/23 00:05
2020/02/23 00:32