I’m encountering this same issue. Pages are returning an HTTP 500. This is the error I’m getting in the netlify function logs,
Jan 1, 09:35:19 AM: 60b89486 ERROR [nuxt] [request error] [unhandled] [500] Cannot find module '@vue/compiler-dom'
Require stack:
- /var/task/server.mjs
Jan 1, 09:35:19 AM: 60b89486 ERROR [nuxt] [request error] [unhandled] [500] Invalid lazy handler result. It should be a function:
It seems like this error might be related to Netlify, specifically. I deployed the same code, with the same configuration, on Vercel, and it didn’t hit this issue. It looks like the error only comes up for pages that aren’t prerendered (which would be pages that are served by the netlify function).
Is there any guidance around what might be causing this?