skip to Main Content

enter image description here

I have installed my laravel-vue application on a cpanel-serve.
but every time I change something and upload app.js on server the browser cache history and I should use
Ctrl+F5 or Ctrl+R to clear history.

I saw some solutions to user laravel mix and import like this

<script src="{{ mix('js/app.js') }}"></script>

but when I upload it on serve I saw the error

"The Mix manifest does not exist"

Is there any one help me?

2

Answers


  1. This error can occur when you haven’t compiled your js and css assets.

    If you are working on a dev environment, try running one of the following

    npm run dev
    npm run watch
    npm run prod
    

    I’ve encountered this when switching between production branches (where i have commited production assets) and development branches (where they are ignored by git)

    Login or Signup to reply.
  2. For me it shows a hint about the solution :

    Error’s screenshot with a hint

    You missed npm install && npm run dev

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