Open rcocks-hl opened 9 months ago
What's odd here is that the formik project has "esModuleInterop":true
set, so this won't be an error when compiling just formik, but somehow is tripping an error when compiling a project with "esModuleInterop":false
that just references formik.
Bug report
Current Behavior
When compiling with a reference to formik 2.4.5 I get the following error:
Expected behavior
Expect to compile without error.
Suggested solution(s)
On line https://github.com/jaredpalmer/formik/blob/0f960aaeeb0bdbef8312b5107cd3374884a0e62b/packages/formik/src/connect.tsx#L2C2-L2C2 replace
import hoistNonReactStatics from 'hoist-non-react-statics';
withimport * as hoistNonReactStatics from 'hoist-non-react-statics';
Additional context
A mitigation is to have
"skipLibCheck": true
incompilerOptions
of a project tsConfig.Your environment