laravelでnpm run devを実行したところ、エラーが出ました。
ログイン認証系のphp artisan make:authを導入した後に発生したのですが、いまいちエラーが解消せずに困っております。
検索していると、app.scssのbootstrapを読み込めていない事が原因とありましたので、bootstrapを試しにコメントアウトしたのですが、再度発生しています。(読み込んでない?)
下記のcss-loader配下のindex.jsも存在しておりますし、どのようにエラーを追跡すればいいのか等もわからず困っております。。
バージョン、エラー内容は下記の通りです。
npm 6.9.0
php artisan --version PHP 7.2.11 (cli)
npm run dev実行ログ
> @ dev /var/www/nasu > npm run development > @ development /var/www/nasu > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 98% after emitting SizeLimitsPlugin ERROR Failed to compile with 2 errors 12:25:51 PM 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 (/var/www/nasu/node_modules/sass-loader/node_modules/schema-utils/dist/validate.js:85:11) at Object.loader (/var/www/nasu/node_modules/sass-loader/dist/index.js:36:28) at runLoaders (/var/www/nasu/node_modules/webpack/lib/NormalModule.js:316:20) at /var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:367:11 at /var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:233:18 at runSyncOrAsync (/var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:232:2) at /var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:205:4 at process.nextTick (/var/www/nasu/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15) at process._tickCallback (internal/process/next_tick.js:61:11) error in ./resources/sass/app.scss 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 (/var/www/nasu/node_modules/sass-loader/node_modules/schema-utils/dist/validate.js:85:11) at Object.loader (/var/www/nasu/node_modules/sass-loader/dist/index.js:36:28) @ ./resources/sass/app.scss 2:14-253 Asset Size Chunks Chunk Names /js/app.js 1.39 MiB /js/app [emitted] /js/app 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 (/var/www/nasu/node_modules/sass-loader/node_modules/schema-utils/dist/validate.js:85:11) at Object.loader (/var/www/nasu/node_modules/sass-loader/dist/index.js:36:28) at runLoaders (/var/www/nasu/node_modules/webpack/lib/NormalModule.js:316:20) at /var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:367:11 at /var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:233:18 at runSyncOrAsync (/var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:232:2) at /var/www/nasu/node_modules/loader-runner/lib/LoaderRunner.js:205:4 at process.nextTick (/var/www/nasu/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15) at process._tickCallback (internal/process/next_tick.js:61:11) @ ./resources/sass/app.scss ERROR in ./resources/sass/app.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/app.scss) 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 (/var/www/nasu/node_modules/sass-loader/node_modules/schema-utils/dist/validate.js:85:11) at Object.loader (/var/www/nasu/node_modules/sass-loader/dist/index.js:36:28) @ ./resources/sass/app.scss 2:14-253 npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/nasutaro/.npm/_logs/2020-03-28T03_25_51_654Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @ dev: `npm run development` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/nasutaro/.npm/_logs/2020-03-28T03_25_51_731Z-debug.log
cat /var/www/nasu/node_modules/css-loader/index.js /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ module.exports = require("./lib/loader");
cat app.scss
// Fonts @import url('https://fonts.googleapis.com/css?family=Nunito'); // Variables @import 'variables'; // Bootstrap //@import '~bootstrap/scss/bootstrap';
回答2件
あなたの回答
tips
プレビュー