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

Getting useFormControlContext must be used within a FormControlContext.Provider component error #150

Closed
Blankeos opened this issue Nov 21, 2024 · 5 comments

Comments

@Blankeos
Copy link

Blankeos commented Nov 21, 2024

Uncaught Error: [kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component

I tried doing this example, no changes: https://www.solid-ui.com/docs/components/text-field

Version: @kobalte/core 0.13.7

The site crashes and throws this error.

@stefan-karger
Copy link
Owner

stefan-karger commented Nov 21, 2024

Hi @Blankeos,
thanks for opening this issue.
Since I use this code a lot inside my other projects and never had any issues I'd need a repo I can look at to check the error myself.
Could you provide a minimal reproducible example?

@Blankeos
Copy link
Author

Hi! I'll push a minimal example in a bit. But right now I just opted to use regular <input /> since that seems to work lol. I went at this for hours, I couldn't figure it out. Might be a false alarm if the minimal example ends up working. Will keep you updated.

@stefan-karger
Copy link
Owner

any update on this? :)

@evelant
Copy link

evelant commented Mar 15, 2025

Also running into this with the text field and not sure why

@evelant
Copy link

evelant commented Mar 17, 2025

Ah I figured it out, was just not using the correct components per the docs

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

3 participants