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

Promise error in IE11 #870

Closed
davidspiess opened this issue Sep 4, 2018 · 3 comments
Closed

Promise error in IE11 #870

davidspiess opened this issue Sep 4, 2018 · 3 comments

Comments

@davidspiess
Copy link

davidspiess commented Sep 4, 2018

Current Behavior

When calling setFieldValue with shouldValidate equals true, i get a Promise is undefined error in in IE11 (Formik 1.1.1).
This wasn't the case in 0.11.11.
Same happens when calling submitForm().


  • Formik Version: 1.1.1
  • React Version: 16.4.13
  • TypeScript Version: 3.0.3
  • Browser and Version: IE 11
  • OS: Windows 10
  • Node Version: 8.11.4
  • Package Manager and Version: 6.4.0
@davidspiess davidspiess changed the title setFieldValue throws Promise error in IE11 Promise error in IE11 Sep 4, 2018
@mvestergaard
Copy link
Contributor

Not related to formik. IE11 does not have native support for promises. You need to polyfill them.

@davidspiess
Copy link
Author

Maybe add a notice about that in the README.
It worked without polyfills before, so upgrading could cause IE 11 errors for a lot of users, without them noticing.

@prichodko
Copy link
Collaborator

It is usually handled during build process (using babel-preset-env for example), otherwise you have to polyfill it manually.

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