-
EDIT: I have found the solution! I had to set A useful tool I found to debug this was "Don't empty log" in Firefox's developer tools, which allows you to view console messages even after the page reloads or redirects to another url. Using this, I was able to view the source code line where in Webpack where the hot reload url was generated and figure out that Original post: Hi there, I'm developing a PHP app with a Vue component. During development, I have my PHP app running on Apache at localhost:80, and I have the Vue-CLI dev server (
My Vue app loads without issues. However, when I make a change to e.g. a component's template or its style, the page completely reloads, rather than hot-reloading. By making a screen recording, I was able to observe that, right before the page reloads, an attempt is made to load the hot-update.json from the wrong url, resulting in a 404 error: Immediately after this error occurs, the page reloads. This Can anyone help me fix this? Of course, it may be possible to configure an appropriate redirect in Apache to overcome this problem temporarily, but I would rather not make it necessary for every developer on my team to do that. All the best, (more infos: I set my project up with Vue 3 using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Marking as solved. I had to set publicPath: 'http://localhost:8080/' in vue.config.js. |
Beta Was this translation helpful? Give feedback.
Marking as solved. I had to set publicPath: 'http://localhost:8080/' in vue.config.js.