Skip to content

fix: includePackages fails with vue-component-meta 3.3 and update it - #213

Merged
fago merged 1 commit into
1.xfrom
feature/vue-component-meta-3.3
Aug 4, 2026
Merged

fix: includePackages fails with vue-component-meta 3.3 and update it#213
fago merged 1 commit into
1.xfrom
feature/vue-component-meta-3.3

Conversation

@drubot

@drubot drubot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Upgrades vue-component-meta 3.2.9 → 3.3.9, and fixes the behaviour change it introduces.

The breakage

vue-component-meta 3.3 only reads files that belong to the tsconfig project or were registered explicitly. Components pulled in via includePackages live in node_modules, which the project tsconfig does not cover — so they silently dropped out of the component index:

Error processing component …/node_modules/@acme/ui-kit/AcmeButton.vue:
  '…' is not part of the project. Use a tsconfig that includes it, or call `updateFile()` to add it.

This is a real regression for consumers using includePackages, not just a test failure — the affected components disappear from component-index.json.

The fix

generateComponentIndex now registers such a file with the checker (updateFile) and retries, so package components keep being indexed. Unrelated errors still propagate.

Verification

Run locally on this branch:

  • unit: 128/128 pass (incl. the two includePackages cases that fail without the fix)
  • e2e: 24/24 pass (dev + production servers, real browser)
  • lint: 0 errors

🤖 Generated with Claude Code

https://claude.ai/code/session_0135TzeJ5xX7vdwouF9Qd6yv

vue-component-meta 3.3 only reads files that belong to the tsconfig
project or were registered explicitly. Components pulled in via
`includePackages` live in node_modules, which the project tsconfig does
not cover, so they dropped out of the component index with "is not part
of the project".

Register such a file with the checker and retry, so package components
keep being indexed.
@fago fago changed the title fix(deps): Upgrade vue-component-meta to 3.3. fix: includePackages fails with vue-component-meta 3.3 Aug 4, 2026
@fago fago changed the title fix: includePackages fails with vue-component-meta 3.3 fix: includePackages fails with vue-component-meta 3.3 and udpate it Aug 4, 2026
@fago fago changed the title fix: includePackages fails with vue-component-meta 3.3 and udpate it fix: includePackages fails with vue-component-meta 3.3 and update it Aug 4, 2026
@fago
fago merged commit 505b54e into 1.x Aug 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants