In my case, it happens when I return null inside the Storybook Template. It works with <></>.
<></>
Works:
if (!ready) { return <></> }
Doesn't work
if (!ready) { return null }