jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.91k stars 2.78k forks source link

Error with Formik in Storybook 7 - Cannot read properties of null (reading 'useRef') #3760

Closed TENsaga closed 1 year ago

TENsaga commented 1 year ago

Bug report

Current Behavior

Getting this error after upgrading to Storybook 7, both CSF 2.0 and 3.0:

image

Attempting to render basic example from docs:

image

Expected behavior

Can create a story using Formik

Your environment

Software Version(s)
Formik 2.2.9
React 18.1.0
Storybook 7.0.6
TypeScript 4.9.3
Browser Chrome (latest)
npm/Yarn Node V 16
Operating System Mac