nuxt / nuxt/image

[nuxt3] Static image prerendering endless loop

Open
#662 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

See reproduction: https://github.com/brunodeangelis/nuxt3-image-endless-loop

Static prerendering introduced in #614 seems to be generating an endless loop when running yarn generate. This seems to be associated in some way with the format option
Screenshot 2022-11-24 at 18 18 52

If I let it run, it just keeps creating more and more directories as seen here:
Screenshot 2022-11-24 at 18 21 45

Any help appreciated, thank you

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

Start with the reproduction at brunodeangelis/nuxt3-image-endless-loop and run yarn generate to observe the endless directory creation. Read the static prerendering changes introduced in #614 and investigate how the format option affects generated paths; done means generation terminates without recursively creating directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, 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.