I have created an app with nuxtjs and vee-validate and deployed to heroku but in local(nuxt build and nuxt start in local machine) when i press login button validation by vee-validate happening and everything fine but in heroku app, when pressing login button entire page refreshes and also "?" appended at the end of URL for example:- login to login? when login button clicked.help me in identifying this issue.thanks
seems like js not running.
3
votes
ChunkLoadError: Loading chunk 0 failed. in console
- sudhakar selva
github.com/nuxt/nuxt.js/issues/742 if you find the solution on this link.
- mhdnp1234
Thanks, @mhdnp1234.sometimes problem was due to AdBlock extensions and for some pages, I changed route name to lowercase.
- sudhakar selva
The same error happened to me using a Service Worker that cached resources. I'd also get 404s if, for whatever reason, the cached HTML page was used and that page tried to load other resources with a hash in their URL over the network but those URLs didn't exist anymore (eg because their hash has changed).
- Francesc Rosas
@FrancescRosas, Thanks . Yeah service worker also part of the issue i think. (for our our case we had a page called UserProfile.vue and changed to userProfile.vue and issue was solved .....) and also updated nuxt version to latest
- sudhakar selva
1 Answers
1
votes
Probably not the case for most people, but this was caused by an ad blocker for me. I disabled for my site, reloaded page, and all was well. Hope this saves someone else time. Found hint to this way down in https://github.com/nuxt/nuxt.js/issues/742