-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 Form in formik@2.0.1-rc.7 #1631
Comments
I am seeing the exact same behavior formik@2.0.1-rc.7 |
+1 |
This is because of microsoft/TypeScript#31676 The solution for now is to downgrade typescript to 3.4.x. |
I was able to augment the declaration for now: import { FormikFormProps } from "formik";
declare module "formik" {
export function Form(props: FormikFormProps): JSX.Element;
} |
Typescript 3.5.3 is released and fixes this issue 🎉 |
Going to deprecate that release and rebuild with 3.5.3 |
🐛 Bug report
Current Behavior
Got an error when trying to import
Form
component fromfomik
package. Like this:Expected behavior
In previous version We have an ability to import
Form
fromformik
packageAdditional context
For some reason in generated types we have
export default Form
;Your environment
The text was updated successfully, but these errors were encountered: