What do you mean? Are you using vite or mix?
Why npm run dev stuck on APP_URL?
Today when i tried to run npm run dev in Laravel 9 , it stucks at APP_URL line. Earlier there were no issues.
@Sinnbeck I'm trying to create Auth. After breeze installation ,when i try to run command ' npm run dev' it stucks at line -
APP_URL: http//demobreeze . test
@akhilmurali so a new project? That uses vite. That's how it's meant to work. Just open http://demobreeze.test and begin developing. Use ctrl + c to stop the dev server
@Sinnbeck Thankyou. But I'm using Laravel ui. It's not working on laravel ui.
@Sinnbeck but register and login page for laravel still giving same error of not having app.js file if it workd why it's same?
@MamoonaShuja if you make a thread describing your problem I will be happy to help :)
@Sinnbeck i solved it. it's new vite it's wasting my days there are new methods for this that's why taking too long
Please check the docs https://laravel.com/docs/9.x/vite#running-vite
What you see is the last line that the dev server outputs. Its then listening for changes to your css files.
Its a bit confusing because the server only serves the css and js asset files - you still need a web server running to host your site (eg php artisan serve, laravel valet etc)
@Snapey Should i run npm run dev command each time i open my project?
@akhilmurali if you want hot reloading.
otherwise you can run npm run build and load the assets as before.
You should though replace where you load the assets in your layout files and use the @vite helper
Rather than npm run dev, I think you want npm run build
Please or to participate in this conversation.