nuxt / nuxt/image

Can't generate static pages

Open
#1,404 6 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.