Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate static pages #1404

Open
lumos94 opened this issue Jul 9, 2024 · 4 comments
Open

Can't generate static pages #1404

lumos94 opened this issue Jul 9, 2024 · 4 comments
Labels
bug Something isn't working needs reproduction

Comments

@lumos94
Copy link

lumos94 commented Jul 9, 2024

when I am trying to generate a static page I get the below errors and the process stops.

ENOENT: no such file or directory, mkdir 'C:\laragon\www\folder\project_folder\.output\public\_ipx\s_104x106\https:\cms.com\uploads'

Errors prerendering:
  ├─ /_ipx/f_webp/https://cms.com/uploads/section1_image_86ade131d3.png (944ms)                                                                                                                                                                                                     nitro 4:19:24 pm  
  │ ├── Error: [500]
  │ └── Linked from /en/sala-de-trading
  │ └── Linked from /sala-de-trading
  ├─ /_ipx/f_webp&s_352x66/https://cms.com/uploads/dotted_arrows_down_icon_d5eaeb41e9.png (2042ms)     

my config is:

image: {
        format: ['webp', 'avif', 'png', 'jpeg', 'jpg', 'svg'],
        domains: [`${process.env.NUXT_STRAPI_URL}`, `${process.env.NUXT_BASE_URL}`],
        strapi: {
            baseURL: 'https://cms.com'
        }
    },
@Baroshem
Copy link
Collaborator

Could you provide a reproduction?

@Baroshem Baroshem added bug Something isn't working needs reproduction labels Dec 10, 2024
Copy link
Contributor

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a template for starting with a minimal reproduction:

👉 https://stackblitz.com/github/nuxt/image/tree/main/example

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

@trongtindev
Copy link

Could you provide a reproduction?

Vercel or StackBlitz is no problem, only when building on Windows Local

ERROR  ENOENT: no such file or directory, mkdir 'D:\Github\nuxtui3\.output\public\_ipx\s_640x320\https:\i.imgur.com'
at async Object.mkdir (node:internal/fs/promises:858:10)
at async writeFile (/D:/Github/nuxtui3/node_modules/nitropack/dist/kit/index.mjs:53:3)
at async generateRoute (/D:/Github/nuxtui3/node_modules/nitropack/dist/core/index.mjs:2010:7)
...
at async Object.run (/D:/Github/nuxtui3/node_modules/nuxi/dist/chunks/build.mjs:104:5)

Reproduction link: https://github.com/trongtindev/nuxt-image-error

@Baroshem
Copy link
Collaborator

Baroshem commented Dec 11, 2024

I see. I dont have a Windows machine to test it on it unfortunately.

Maybe someone from the community will be able to test this out and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs reproduction
Projects
None yet
Development

No branches or pull requests

3 participants