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
This error can occur when you haven’t compiled your
js
andcss
assets.If you are working on a dev environment, try running one of the following
I’ve encountered this when switching between production branches (where i have commited production assets) and development branches (where they are ignored by git)
For me it shows a hint about the solution :
Error’s screenshot with a hint
You missed
npm install && npm run dev