I was dealing with the same problem, even if I am late for a conversation, maybe someone will find a useful solution that I found.
There seems to be a problem with webpack.
When using the vue-cli web package template, you need to configure the proxy server for the necessary routes. For example, in your case, you need to add this to the config/index.js
:
... dev: { ... proxyTable: { '/t/*.*': { // this will match all urls with dots after '/t/' target: 'http://localhost:8080/', // send to webpack dev server router: function (req) { req.url = 'index.html' // Send to vue app } } // Any other routes you need to bypass should go here. } ... }, ...
Thus, webpack proxies all requests to this URL and does not treat them as files.
source share