nuxt / nuxt/image

[Nuxt Bridge] Tries to import from .nuxt/dist/api/ipx.js

Open
#476 1 comment 2 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

Hello 👋

Using the latest Nuxt Bridge and Nuxt Image set in modules and in dependencies.

I build nuxi build and start it nuxi start and I got immediately a critical error.

It tries to import IPX from the .nuxt folder Cannot find module '/project/.nuxt/dist/api/ipx.js' imported from /project/.output/server/chunks/nitro/server.mjs.

The problem seems to be coming from here: https://github.com/nuxt/image/blob/0affa9dbab1c582f27cce9133479517c2a4bd43a/src/ipx.ts#L50

However, I'm not sure how the underlying API works and how it should be refactored to be compatible with Nuxt 2 and 3.

Thank you very much!

CC: @danielroe @pi0

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 import logic in src/ipx.ts and reproduce the failure with nuxi build followed by nuxi start in a Nuxt Bridge project using Nuxt Image. Trace why .output/server/chunks/nitro/server.mjs requests .nuxt/dist/api/ipx.js, then verify that the built application starts without the missing-module error under the supported Nuxt versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.