nuxt generate throw:ERROR Exiting due to prerender errors.

My nuxt3 project runs well in the development environment,but when I run
nuxt generate
it throw error as image show.
There are too few details in the log prompts to track them.and project is quite complex, I can't provide a reproduction.
I only know when I modify the
ssr:false
in
nuxt.config.ts
,it can generate normally,but I don't think this is the solution to the problem because I need ssr.Has anyone encountered the same problem as me?
Snipaste_2025-03-20_22-08-39.png
Was this page helpful?