nuxt / nuxt/image

IPX: File not found when using SVGS from public

Open
#998 3 comments 4 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

There seems to be a problem when loading SVGs from the public directory. If you try you get the error Error: [404] IPX: File not found.

i cant find anything in the documentation regarding this, am i missing something? Or is this not supported?

as a side note, everything 100% works on npm run dev. however it explodes on npm run generate.

edit: it seems it depends on the type of SVG. The simple cloud search one works but the techcrunch one doesnt
CloudSearch

techcrunch-ar21 1

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 the failure with SVGs in the public directory by comparing npm run dev with npm run generate, using the CloudSearch and techcrunch SVG examples from the issue. Trace the IPX file lookup and SVG handling from the generation entry point; done means supported public SVGs generate without the 404 IPX: File not found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
backend
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.