react-hook-form / devtools

📋 DevTools to help debug forms.
https://react-hook-form.com/dev-tools
MIT License
643 stars 47 forks source link

Devtools not rendering in Storybook #119

Closed dannyshaw closed 2 years ago

dannyshaw commented 2 years ago

We had some storybook stories wired up with Devtool attached to them. Since upgrading it to 4.0.2 from 2.2.1, and hook form from 6 -> 7, the Devtool just will not render in storybook. no elements on screen at all. Snapshots picked it up.

Is there a reason for this I'm missing. I've beaten my head quite a bit looking for a reason. I'm suspicious on NODE_ENV perhaps replacing it with null but Storybook is running in 'development'.

dannyshaw commented 2 years ago

Closing, we had NODE_ENV=storybook prepended to our package.json scripts for storybook, which was overriding my manual call to NODE_ENV=development yarn run storybook.

Disregard!