Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Nevda's avatar
Level 1

Bundle.js not found after installing Inertia in Laravel - Solved ✅

I recently decided to try Inertia to learn and understand it!

Well as I'm completely new to this thing, now I get an error message and when I investigate it more I realize there is no bundle.js file, created in js directory!

To be honest, as I'm new to Inertia, I'm not even sure if this problem is really related to Inertia itself or it's something else but up to this point, as this is a FRESH project, I haven't installed anything else except: Laravel\Cashier, Laravel Breeze, Inertia

As you may already used this thing before, when we install Inertia, it creates a file named app.blade.php.

In that file without adding or removing any lines of code, there are 3 lines of code which add bundle.js file:

@env ('local')
    <script src="http://localhost:8080/js/bundle.js"></script>
@endenv

I searched for this file in \public\js directory but I found NOTHING!

I installed Inertia here!

If anybody here has used Inertia before and has any answer for this question please helps me to solve this problem. Also please let me know if these 3 lines of codes are required or not because I see it says @env('local'). Thank you.

0 likes
3 replies

Please or to participate in this conversation.