Reputation: 11
Today when i tried to run npm run dev in Laravel 9 , it stucks at APP_URL line. Earlier there were no issues.enter image description here
Upvotes: 1
Views: 3687
Reputation: 36
first solution : Laravel 9.19 replace the mixer with Vite, for Vite Configuration visit the official Doc of Laravel for Vite Bundling Assets (Vite)
second solution: install Laravel version 9.1.0 or lower
composer create-project Laravel/Laravel App_name 9.1.0
Upvotes: 1
Reputation: 1076
There is nothing wrong with your build. Laravel now uses Vite as front-end bundler. It is much more powerful than mix, so check out the documentation and get used to it. Or roll back to mix.
Upvotes: 1
Reputation: 29
Uninstall and reinstall the npm package.
Delete the node_modules folder. and then run the following command
npm install
Later
npm install -g require
Upvotes: -2