Storybook must end up at version 10.6 or later. (While 10.6 is unreleased, next satisfies this — 10.6.0-alpha.x. Any canary build, 0.0.0-pr-*, also qualifies.)
Read https://storybook.js.org/docs/releases/upgrading.md in its entirety to get the latest Storybook upgrade instructions.
If the latest stable release is still below 10.6, upgrade to the prerelease instead with npx storybook@next upgrade.