0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

laravelのログイン機能の導入がうまくいかない(npm run dev エラー)

Posted at

laravel 6.18

laravelのログイン機能を追加するに当たって、laravel/uiをインストールしました。

composer require laravel/ui "^1.2"

そして、
php artisan ui vue --auth

でモジュールを展開し、ok!

次に、
npm install && npm run dev   (インストール&実行)

しましたが、どうしてもエラーが出てしまい、実行できない。

そこで下記コマンドを実行。

npm uninstall --save-dev sass-loader

npm install --save-dev sass-loader@7.1.0

npm run dev

   Asset      Size   Chunks             Chunk Names

/css/app.css 191 KiB /js/app [emitted] /js/app
/js/app.js 1.38 MiB /js/app [emitted] /js/app

成功しました!

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?