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

Unable to import FormValidateInput from "@mantine/form/lib/types"; #7061

Closed
2 tasks done
pfo-omicsstudio opened this issue Nov 1, 2024 · 0 comments · Fixed by #7062
Closed
2 tasks done

Unable to import FormValidateInput from "@mantine/form/lib/types"; #7061

pfo-omicsstudio opened this issue Nov 1, 2024 · 0 comments · Fixed by #7062

Comments

@pfo-omicsstudio
Copy link
Contributor

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

^7.13.4

What package has an issue?

@mantine/form

What framework do you use?

Vite

In which browsers you can reproduce the issue?

All

Describe the bug

I would like to be able to use the type FormValidateInput from @mantine/form/lib/types for my own custom hook.
However, I cannot import it, as it is not exported from the@mantine/form library.

import { FormValidateInput } from "@mantine/form/lib/types";

Error:
TS2307: Cannot find module @mantine/ form/ lib/ types or its corresponding type declarations

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

Export the FormValidateInput type from the @mantine/form package.

Self-service

  • I would be willing to implement a fix for this issue
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

Successfully merging a pull request may close this issue.

1 participant