0

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?

linktoahref
  • 7,812
  • 3
  • 29
  • 51
Yasaman.Mansouri
  • 550
  • 1
  • 3
  • 13

2 Answers2

0

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)

Spholt
  • 3,724
  • 1
  • 18
  • 29
0

For me it shows a hint about the solution :

Error's screenshot with a hint

You missed npm install && npm run dev

RedaMakhchan
  • 482
  • 3
  • 9