image icon indicating copy to clipboard operation
image copied to clipboard

Unable to execute generate or build successfully(ERROR: Exiting due to prerender errors)

Open hmingv opened this issue 1 year ago • 2 comments

Hi everyone, I received the following error when executing pnpm generate, which is frustrating because I have no idea why it is, but I speculate that it has something to do with my environment.

I am currently testing on two platforms and there is a problem

  1. Windows 11

    • Operating System: Windows_NT
    • Node Version: v20.1.0
    • Nuxt Version: 3.10.0
    • CLI Version: 3.10.0
    • Nitro Version: 2.8.1
    • Package Manager: [email protected]
    • Builder: -
    • User Config: devtools, modules, image
    • Runtime Modules: @nuxt/[email protected]
    • Build Modules: -
    • image
  2. Ubuntu 22.04.3 LTS

    • Operating System: Linux
    • Node Version: v20.11.1
    • Nuxt Version: 3.10.0
    • CLI Version: 3.10.0
    • Nitro Version: 2.8.1
    • Package Manager: [email protected]
    • Builder: -
    • User Config: devtools, modules, image
    • Runtime Modules: @nuxt/[email protected]
    • Build Modules: -
    • image

Their errors vary, but all prevent me from deploying.

But consciously, when I try to create mimimal reproduction it is successful. Whether it's pnpm generate or pnpm build it goes very smoothly.

Note: The code running in the three environments is the same

image

But unfortunately, I need to deploy the project in a real environment, so I would like to ask everyone, what is the reason for this? What should I do to solve it.

If there is anything you need to add, please let me know, thank you!

hmingv avatar Mar 22 '24 10:03 hmingv

Nada ainda?

henriquemarba2 avatar Apr 23 '24 20:04 henriquemarba2

image windows reserved character : (colon) https://image.nuxt.com/get-started/configuration#alias

Rugpjutis avatar May 02 '24 13:05 Rugpjutis