0
0

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 1 year has passed since last update.

Laravelで"The Mix manifest does not exist"が出た時の対処法

Last updated at Posted at 2022-10-03

開発環境

Laravel 8.0
PHP 8.1.4

エラー発生状況

1.新規アプリ作成 & アプリ起動できること確認

terminal
 composer create-project "laravel/laravel=8.*" アプリ名
 php artisan serve

2.bladeファイルでcssを指定するため以下を記載

resources/views/welcome.blade.php
 <link rel="stylesheet" href="{{ url(mix('css/app.css')) }}">

4."The Mix manifest does not exist"が発生

対処法

以下実行後、アプリ再読み込みでエラーが消えることを確認

terminal
npm install
npm run dev 

参考記事

追記

2022/10/04
公式ドキュメントにLaravel Mixを使う場合はinstallとrunしましょうと記載がありました。
https://laravel.com/docs/8.x/mix#installing-laravel-mix

0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?