500 Error on Page Reload in Production – Works Locally

Hello,

I am encountering a 500 error on page reload in production, but everything works perfectly in the local environment, so I’m unsure what’s causing the issue. Please go to finerealty.io/about and try it out.

Site Name: spiffy-salmiakki-abc8cb.netlify.app
Domain: finerealty.io

I think it has something to do with:

  const {
        data: page
    } = await useAsyncData('about', () => queryContent('/about').findOne())

Best

@Rust Since it’s a 500 error it probably originated from a function, try checking your function logs:

Hello,

thanks for you answer.

This is the output:

Jan 20, 03:49:50 PM: d9e13629 ERROR  [nuxt] [request error] [unhandled] [500] _createApp is not a function
Jan 20, 03:49:50 PM: d9e13629 ERROR  [nuxt] [request error] [unhandled] [500] _createApp is not a function
Jan 20, 03:49:50 PM: d9e13629 Duration: 13.46 ms	Memory Usage: 193 MB

@Rust You’re using Nuxt, so you would search for nuxt _createApp is not a function

When I searched I found this thread which has some solutions you could try:
https://answers.netlify.com/t/getting-500-error-after-nuxt-project-deployment/129969

It seems adding vue-router to your dependencies should fix it.

1 Like

Thank you so much, it worked!