<Prompt> from v5 (along with usePrompt and useBlocker from the v6 betas) are not included in the current released version of v6. We decided we'd rather ship with what we have than take even more time to nail down a feature that isn't fully baked. We will absolutely be working on adding this back in to v6 at some point in the near future, but not for our first stable release of 6.x.
umi4找不到Prompt及react-helmet · Issue #8206 · umijs/umi
Upgrading from v5 v6.15.0 | React Router