[Vuejs]-Vue Js 2 error reload

0πŸ‘

βœ…

I solved this adding the .htaccess and transform to a nginx code and adding an slash β€˜/’ in src attribute in script tag

 <script src="/dist/app.js">

0πŸ‘

It seems that you are trying to configure the nginx server using htaccess which is intended for apache.

Try to configure nginx, with configs like this:

location / {
  try_files $uri $uri/ /index.html;
}

Leave a comment