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

anandkumar's avatar

Uncaught (in promise) Error: Page not found: ./Pages/Chirps/Index.vue

I am trying to build first app with laravel with bootcamp but failed somewhere at:

https://bootcamp.laravel.com/creating-chirps#inertia

PS: I am not using docker.

0 likes
9 replies
Sinnbeck's avatar

Did you create this file as shown? resources/js/Pages/Chirps/Index.vue

We can then create our front-end Chirps/Index page component with a form for creating new Chirps:

Sinnbeck's avatar

@anandkumar double check the name of the file and folder, and double check the content is exactly the same as in the example

thinkverse's avatar

You need to run Vite so it can build the front-end assets, under the Installation step tells you to run the Vite development server to enable hot-module replacement.

Breeze will install and configure your front-end dependencies for you, so we just need to start the Vite development server to enable instant hot-module replacement while we build our application.

npm run dev

Every time you add a new Vue file, update your JavaScript files or add things to your CSS, you need to re-build those assets, and when you've finished development you can build production assets using.

npm run build
1 like
Sinnbeck's avatar

@anandkumar you need to run both at the same time

php artisan serve is for laravel

npm run dev is for vue

5 likes
thinkverse's avatar

@anandkumar as @sinnbeck pointed out, you need to run both at the same time. artisan serve will run your Laravel application proper, it will spin up a PHP development server from which it serves your Laravel application.

artisan serve will not build your assets for you, that's why you need to run the Vite development server - npm run dev - at the same time as artisan serve so that Vite can build and serve your assets automatically during development.

ziyodullo's avatar

I had the same problem, but I chose React. It turned out that in the controller, I passed "Chirp/Index" to the method Intertia::render(), but I named the folder Chirps, and that’s why it didn’t work.

Please or to participate in this conversation.