Description
Environment
- Operating System: Windows_NT
- Node Version: v22.13.1
- Nuxt Version: 3.16.2
- CLI Version: 3.24.1
- Nitro Version: 2.11.8
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, modules, devtools, experimental, app, css, site, runtimeConfig, build, ui, sourcemap, fonts, future, vite, typescript, eslint, prismic, pwa, sentry
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @nuxt/[email protected], @nuxtjs/[email protected], @nuxtjs/[email protected], @sentry/nuxt/[email protected], @vite-pwa/[email protected], @vueuse/[email protected], @zadigetvoltaire/[email protected], [email protected], @nuxt/[email protected]
- Build Modules: -
Is this bug related to Nuxt or Vue?
Nuxt
Version
https://pkg.pr.new/@nuxt/ui@3deed4c
Reproduction
not working with: "@nuxt/ui": "https://pkg.pr.new/@nuxt/ui@3deed4c",
Description
Since upgrading i get the following error:
Type '(event: FormSubmitEvent) => Promise' is not assignable to type '(payload: FormSubmitEvent) => void'.
Types of parameters 'event' and 'payload' are incompatible.
Type 'FormSubmitEvent' is not assignable to type 'FormSubmitEvent<{ email: string; firstName: string; lastName: string; phone: string; terms: boolean; attachmentUri?: string | undefined; comment?: string | undefined; }>'.
Type 'FormSubmitEvent' is not assignable to type '{ data: { email: string; firstName: string; lastName: string; phone: string; terms: boolean; attachmentUri?: string | undefined; comment?: string | undefined; }; }'.
Types of property 'data' are incompatible.
Type '{}' is missing the following properties from type '{ email: string; firstName: string; lastName: string; phone: string; terms: boolean; attachmentUri?: string | undefined; comment?: string | undefined; }': email, firstName, lastName, phone, termsts-plugin(2322)
(property) onSubmit?: ((payload: FormSubmitEvent) => void) | undefined
Additional context
was working in 3.0.2