Debugging Runtime-core.esm-bundler.js Error in Productions #10960
Unanswered
eboraks
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I scaffolded a Vue project with Vue CLI (webpack) and everything is working well on local development, but when I deploy to production (using Firebase hosting) I get the following error:
TypeError: Failed to fetch at i (useLibrary.js:23:31) at Library.vue:24:15 at runtime-core.esm-bundler.js:2865:88 at s (runtime-core.esm-bundler.js:195:19) at a (runtime-core.esm-bundler.js:202:17) at Le.t.__weh.t.__weh (runtime-core.esm-bundler.js:2845:19) at E (runtime-core.esm-bundler.js:370:26) at A (runtime-core.esm-bundler.js:408:5)
The fetch is working, I manually tested the fetch call on the browser, and I see successful responses from the backend API. Thus, I am certain the fetch isn't the problem.
After Googling around, and reading this doc - https://vuejs.org/guide/best-practices/production-deployment, I suspect that the problem is with the Vue.JS set-up by vue-cli but it's not clear to me how to debug it. Here is the package.json:
Any suggestion on how to debug it, will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions