Closed rcocks-hl closed 1 year ago
Yeah, @types/hoist-non-react-statics
should be declared in the dependencies š
This worked for me: npm i @types/hoist-non-react-statics --save-dev
Hi, what's the status of this please?
The suggested workaround of npm i-D @types/hoist-non-react-statics
does not work for our use case.
Bug report
Current Behavior
Typescript compilation fails with type errors in Formik library
The npm package
hoist-non-react-statics
hasn't been updated in years, so seems unlikely to be an upstream issue.Typescript version 4.9.5.
Expected behavior
Compilation should suceed without type errors.
Reproducible example
I don't have an easily shared reproduction, but this is my package-lock info:
react-hoist-non-statics is satisifed with 3.3.2, as it has been for a while:
Suggested solution(s)
Not sure if this requires manual typing or setting a typescript version dependency.
Additional context
This happened after upgrading from Formik 2.4.1 to 2.4.2.
Your environment