I create my project with vue-cli 3.0. Initially it runs ok. But after I then npm run serve again, it keep throwing erro
I had the same issue when deploying to a sub directory on our Azure web server using Vue CLI 3.10. Our site was fine until we changed the routing from history to hash mode which caused this error.
I had to change the links in the index.html page to get it working.
The deployment build gives you this...
…but we had to change it to the following for it to work...