Currently, I am facing an issue while trying to deploy a Nuxt.js site using Netlify and Heroku. Although my build passes on Netlify, the link displays a blank page (). Despite following various online tutorials and adapting solutions from SO for react apps with similar problems, I am unable to pinpoint the reason for this malfunction.
This is my first experience building a web app with Nuxt/Vue and deploying it live. You can find my codebase on Github here https://github.com/KyleSFraser/Portfolio, and my Netlify build settings are configured as follows.
https://i.sstatic.net/3pQ8L.png
Upon inspecting the webpage, I noticed several errors, but they are not making much sense to me in terms of understanding why my site is not displaying properly.
https://i.sstatic.net/3hdIt.png
I would greatly appreciate any assistance in resolving the issue causing my site to appear blank.
EDIT
After successfully adding the production URL as suggested and configuring some settings on the Strapi database, I was able to address the CORS error. However, I am now encountering a DOMException
and a TypeError: "n is undefined"
. Despite refactoring my code to ensure there is no invalid HTML, these errors persist.
EDIT 2
Thanks to @arapl3y's comment and link, it seems to be a hydration problem. I have narrowed it down to my components that rely on my API, namely ProjectAccordion.vue
and ProjectItem.vue
.
Although I am still uncertain of the root cause of the issue, it appears to occur when trying to fetch data from my Heroku API. While I can access and populate my database using my Heroku URL, it seems there may be an issue in how the API is being integrated into my app.