umi-plugin-keep-alive
umi-plugin-keep-alive copied to clipboard
umi3.5+ts 使用keepAlive标签 编译器出现以下错误 怎么扩展一下ts声明
import { KeepAlive } from 'umi';
export default () => ( <KeepAlive> <Home /> </KeepAlive> );
react 版本是18 吗
反应版本是18吗
17.x
那可能是某些库导致 @types/react 版本升高了,18 版本的 react 类型发生了较大变化 需要在 package.json 中固定一下 @types/react 的版本到 17.x
{
"resolutions": {
"@types/react": "17"
},
}
那可能是某些库导致 @types/react 版本升高了,18 版本的 react 类型发生了较大变化 需要在 package.json 中固定一下 @types/react 的版本到 17.x
{ "resolutions": { "@types/react": "17" }, }
也遇到同样的问题,添加了该配置没有生效