skip to Main Content

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? enter image description hereenter image description here

I already try any suggestion to update npm, but still got this error.

2

Answers


  1. Try running 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

    Login or Signup to reply.
  2. In my case the solution was a forgotten mix() command in the app layout blade file.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search