nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.31k stars 267 forks source link

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

Open hmingv opened 5 months ago

hmingv commented 5 months ago

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: npm@9.6.4
      • Builder: -
      • User Config: devtools, modules, image
      • Runtime Modules: @nuxt/image@1.4.0
      • 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: npm@10.2.4
    • Builder: -
    • User Config: devtools, modules, image
    • Runtime Modules: @nuxt/image@1.4.0
    • 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!

henriquemarba2 commented 4 months ago

Nada ainda?

Rugpjutis commented 4 months ago

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