nuxt / nuxt/ui

UForm cross-validation fails

Open
#5,932 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Environment

| | Operating system macOS 25.2.0 │
│ │ CPU Apple M3 Pro (11 cores) │
│ │ Node.js version v22.20.0 │
│ │ nuxt/cli version 3.31.3 │
│ │ Package manager pnpm 10.26.1 │
│ │ Nuxt version 4.2.2 │
│ │ Nitro version 2.12.9 │
│ │ Builder vite 7.3.0 │
│ │ Config colorMode, compatibilityDate, css, devtools, eslint, i18n, modules, │
│ │ routeRules, runtimeConfig │
│ │ Modules @nuxt/eslint 1.12.1, @nuxt/ui 4.3.0, @nuxt/devtools 3.1.1, @nuxt/image │
│ │ 2.0.0, │
│ │ @nuxt/icon 2.2.0, @nuxt/fonts 0.12.1, @nuxt/a11y 1.0.0-alpha.1, @nuxt/hints │
│ │ 1.0.0-alpha.5, @pinia/nuxt 0.11.3, pinia-plugin-persistedstate 4.7.1, │
│ │ @nuxtjs/i18n 10.2.1, @vueuse/nuxt 14.1.0, @nuxtjs/robots 5.6.7, │
│ │ @nuxtjs/color-mode 4.0.0, @nuxtjs/sitemap 7.5.2, @vite-pwa/nuxt 1.1.0

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.3.0

Reproduction

https://codesandbox.io/p/devbox/uformfield-bug-437w5s

Description

I would expect that if UForm gets error from superRefine about other field in form that it would display the error on the secondary field, but it's not showing.

Additional context

No response

Logs

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 linked CodeSandbox reproduction and inspect the UForm validation path involving superRefine and cross-field errors. Confirm how the error for the secondary field is produced and handled; the issue is complete when that field displays the expected error from the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.