Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form-element-field ts error #1634

Closed
tzezar opened this issue Jan 20, 2025 · 2 comments
Closed

form-element-field ts error #1634

tzezar opened this issue Jan 20, 2025 · 2 comments

Comments

@tzezar
Copy link

tzezar commented Jan 20, 2025

Describe the bug

form-element-field raise errors

Reproduction

clean project setup according to shadcn-svelte docs

Property 'children' does not exist on type 'Omit<WithElementRef<HTMLAttributes<HTMLDivElement>>, "children"> & ElementFieldProps<T, U>'.ts(2339)

Logs

c:\Users\tzezar\Documents\GitHub\datagrid\sites\official\src\lib\components\ui\form\form-element-field.svelte:25:53
Error: Binding element 'value' implicitly has an 'any' type. (ts)
<FormPrimitive.ElementField {form} {name}>
        {#snippet children({ constraints, errors, tainted, value })}
                <div bind:this={ref} class={cn("space-y-2", className)} {...restProps}>

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400F
    Memory: 15.70 GB / 31.86 GB
  Binaries:
    Node: 22.11.0 - C:\Program Files\nodejs\node.EXE  
    npm: 11.0.0 - C:\Program Files\nodejs\npm.CMD     
  Browsers:
    Edge: Chromium (130.0.2849.68)

Severity

annoyance

@ieedan
Copy link
Contributor

ieedan commented Jan 21, 2025

Can you provide a reproduction?

@tzezar
Copy link
Author

tzezar commented Jan 22, 2025

Hmm... I wanted to, but I can't seem to reproduce this anymore.

@tzezar tzezar closed this as completed Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants