The Mix Manifest Does Not Exist Laravel

The Mix Manifest Does Not Exist Laravel

Mix manifest not found at: public/mix-manifest.json in laravel; Through this tutorial, you will learn how to fix mix manifest not found at: public/mix-manifest.json in laravel 5, 6, 7, 8, 9, 10 apps.

Mix manifest not found at Laravel 10|9|8|7|6

Here, you will see 4 solutions to solve/fix mix manifest does not exist or not found in laravel 5, 6, 7, 8, 9, 10 apps; is as follows:

  • Solution 1 – Do Not Use Mix
  • Solution 2 – Replace Mix() to Asset()
  • Solution 3 – Add Root Server Path
  • Solution 4 – Execute npm commands

Solution 1 – Do Not Use Mix

Use the following rel into your blade view file; is as follow:

<link rel="stylesheet" href="{{  mix('css/app.css')  }}">

To

<link rel="stylesheet" href="{{  asset('css/app.css')  }}">

Solution 2 – Replace Mix() to Asset()

The mix() helper function default looks for the manifest-json file in /public/manifest-json.js. So, if you can store files in any other file directory then it will show the error. The manifest-json file is stored in the public/app/manifest-json.js, then for a file located in public/app/css/app.css.

<link rel="stylesheet" href="{{ mix('css/app.css', 'app') }}">

Solution 3 – Add Root Server Path

When you work with live server at that time, you will find some errors like do not access root server.

So, You can edit the App\Providers\AppServiceProvider file and add the following code to the boot() method.

$this->app->bind('path.public', function() {
   return base_path().'/../public_html';
});

Solution 4 – Execute npm commands

Execute the following command to install the MIX package using the below NPM command.

npm install
npm run dev

OR

npm run production

Conclusion

Through this tutorial, you have learned how to fix mix manifest not found at: public/mix-manifest.json in laravel 5, 6, 7, 8, 9, 10 apps.

Recommended Laravel Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *