Closed hunter-xue closed 5 months ago
resolved by install babel/runtime.
这个问题是因为我们在打包时用babel做了polyfill,引入了@babel/runtime
这个依赖,在peerDependencies的react-transition-group
中会间接引入这个依赖,但如果用户没有安装react-transition-group
,且项目用vite编译(不依赖babel)时,就会报错了。arco的最终打包产物也是依赖@babel/runtime
的,应该把它放进 dependencies 里而不是让用户自己安装更合理,我们改下发个包哈~
@arco-design/mobile-react@2.31.2
已修复,MR https://github.com/arco-design/arco-design-mobile/pull/257
Basic Info
Steps to reproduce
yarn start after install