[Nuxt Bridge] Tries to import from .nuxt/dist/api/ipx.js
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
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
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