Skip to content

fix: dev i18 by updating @nuxt/i18n's @nuxt/kit copy - #3176

Merged
ghostdevv merged 2 commits into
npmx-dev:mainfrom
mootari:mootari/260813/mootari/2060813/fix-plugin-order
Aug 14, 2026
Merged

fix: dev i18 by updating @nuxt/i18n's @nuxt/kit copy#3176
ghostdevv merged 2 commits into
npmx-dev:mainfrom
mootari:mootari/260813/mootari/2060813/fix-plugin-order

Conversation

@mootari

@mootarimootari commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🧭 Context

An earlier update of @nuxt/i18n to 10.6.0 in #3163 bumped its dependency of @nuxt/kit to 4.5.1 and introduced a regression in kit's vite plugin ordering, which in turn broke i18n when running the dev server (and potentially in other circumstances).

Relevant upstream PRs:

Steps to repro on main:

  1. run pnpm dev
  2. access the web UI and wait a few seconds
  3. verify that the following error appears:
    [plugin:unplugin-vue-i18n:resource] Unexpected token 'export'.
    

📚 Description

This PR overrides @nuxt/i18n's @nuxt/kit dependency to replace 4.5.1 with 4.5.2 which includes a fix.

Alternatives:

  • downgrade @nuxt/i18n back to 10.5.0
  • update nuxt to 4.5.2 (currently blocked)

@agentscanapp

Copy link
Copy Markdown

Thanks for opening this pull request! 🎉

We really appreciate you taking the time to contribute, @mootari.

A maintainer will take a look as soon as they can. In the meantime, please make sure that:

  • the description explains what changed and why
  • any related issues are linked
  • existing tests still pass

If anything needs adjusting we'll leave comments here. Thanks again!

@vercel

vercelBot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
npmx.devReadyReadyPreviewAug 13, 2026 5:45pm
2 Skipped Deployments
ProjectDeploymentActionsUpdated (UTC)
docs.npmx.devIgnoredIgnoredPreviewAug 13, 2026 5:45pm
npmx-lunariaIgnoredIgnoredAug 13, 2026 5:45pm

Request Review

@coderabbitai

coderabbitaiBot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e30fad0d-6238-44db-9d6d-5bb05b4a0f64

📥 Commits

Reviewing files that changed from the base of the PR and between f9b2afe and 8bab53d.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • pnpm-workspace.yaml

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated the Nuxt tooling configuration to use a fixed compatible version, improving build and development consistency.

Walkthrough

The workspace now pins @nuxt/kit to version 4.5.2 when it is used by @nuxtjs/i18n.

Changes

Nuxt i18n compatibility

Layer / File(s)Summary
Nuxt kit dependency override
pnpm-workspace.yaml
Adds an override that sets @nuxtjs/i18n's @nuxt/kit dependency to 4.5.2.

Possibly related PRs

Suggested reviewers:graphieros

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check nameStatusExplanation
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
Title check✅ PassedThe title clearly identifies the development fix and the @nuxt/kit update within @nuxt/i18n.
Description check✅ PassedThe description clearly explains the regression, reproduction steps, fix, and reason for the dependency override.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

📊 Dependency Size Changes

Warning

This PR adds 244.6 kB of new dependencies, which exceeds the threshold of 200 kB.

📦 Package📏 Size
@nuxt/kit@4.5.2183.7 kB
exsolve@1.1.155.3 kB
errx@0.1.25.6 kB

Total size change: 244.6 kB

@codecov

codecovBot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@mootari

Copy link
Copy Markdown
ContributorAuthor

@ghostdevv Please let me know if you prefer a different solution (e.g. downgrading). 🙏🏻

@ghostdevvghostdevv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@ghostdevvghostdevv changed the title fix(i18n): restore vite plugin pre-ordering in devfix(i18n): fix @nuxt/i18n in dev again by updating it's @nuxt/kit copyAug 14, 2026
@ghostdevvghostdevv changed the title fix(i18n): fix @nuxt/i18n in dev again by updating it's @nuxt/kit copyfix: fix @nuxt/i18n in dev again by updating it's @nuxt/kit copyAug 14, 2026
@ghostdevv

Copy link
Copy Markdown
Member

Alternative to #3130 which needs doing again because I forgot about this issue when merging #3163

@ghostdevvghostdevv changed the title fix: fix @nuxt/i18n in dev again by updating it's @nuxt/kit copyfix: dev i18 by updating @nuxt/i18n's @nuxt/kit copyAug 14, 2026
@ghostdevv
ghostdevv added this pull request to the merge queueAug 14, 2026
Merged via the queue into npmx-dev:main with commit 0dcb9b5Aug 14, 2026
30 of 32 checks passed
@github-actionsgithub-actionsBot mentioned this pull request Aug 14, 2026
@mootarimootari mentioned this pull request Aug 18, 2026
1 task
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mootari@ghostdevv