nuxt / nuxt/image

Missing `#imports` error with `compatibilityVersion: 5`

Open
#2,205 0 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

From https://github.com/nuxt/nuxt/issues/34142#issuecomment-3791192527

Modules like @nuxt/icon need to be updated to use explicit imports (e.g., import { ... } from 'h3') instead of #imports for v5 compatibility.

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

No file or test is named. Start by reproducing the missing #imports error with compatibilityVersion: 5, then inspect this repository's imports and compare them with the explicit h3 imports recommended in the issue. Done means the compatibility error no longer occurs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.