I have the problem when i run npm run build , it says mix manifest not found. It happens when i run in production.
My npm -v is 9.1.2 and running laravel 9, with "php": "^8.0.2".
Have anyone ever got this problem?
I already try any suggestion to update npm, but still got this error.
2
Try running npm install && npm run build.
npm install && npm run build
If you are using Laravel Forge, you can edit your deploy script like:
cd /home/forge/default git pull origin $FORGE_SITE_BRANCH $FORGE_COMPOSER install --no-interaction --prefer-dist --optimize-autoloader ( flock -w 10 9 || exit 1 echo 'Restarting FPM...'; sudo -S service $FORGE_PHP_FPM reload ) 9>/tmp/fpmlock if [ -f artisan ]; then $FORGE_PHP artisan migrate --force fi npm install npm run build
See this post for reference: https://github.com/innocenzi/laravel-vite/discussions/267
In my case the solution was a forgotten mix() command in the app layout blade file.
Click here to cancel reply.
2
Answers
Try running
npm install && npm run build
.If you are using Laravel Forge, you can edit your deploy script like:
See this post for reference: https://github.com/innocenzi/laravel-vite/discussions/267
In my case the solution was a forgotten mix() command in the app layout blade file.