Can't generate static pages
Open
Nobody has claimed this yet.
bug
needs reproduction
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 331
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 9
Description
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'
}
},
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce static generation with the shown Nuxt image configuration and inspect the prerendering errors for the listed /_ipx paths. Trace how the remote image URLs are handled during generation; done means the static build completes without the ENOENT mkdir error and prerenders those pages successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- build-system, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100