umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
351 stars 237 forks source link

麻烦升级下qiankun呢 peer react@"16" from @umijs/plugin-qiankun@2.39.2 #879

Closed margintopt closed 1 year ago

margintopt commented 2 years ago

目前只能依赖到react16

WuQic commented 2 years ago

同上 ,用了npm8后报错

npm ERR! While resolving: @umijs/plugin-qiankun@2.39.2
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.x" from the root project
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @ahooksjs/use-request@2.8.15
npm ERR!   node_modules/@ahooksjs/use-request
npm ERR!     @ahooksjs/use-request@"^2.0.0" from @umijs/plugin-request@2.8.0
npm ERR!     node_modules/@umijs/plugin-request
npm ERR!       @umijs/plugin-request@"2.8.0" from @umijs/preset-react@1.8.30
npm ERR!       node_modules/@umijs/preset-react
npm ERR!         dev @umijs/preset-react@"1.x" from the root project
npm ERR!   87 more (@ant-design/icons, @ant-design/pro-layout, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16" from @umijs/plugin-qiankun@2.39.2
npm ERR! node_modules/@umijs/plugin-qiankun
npm ERR!   dev @umijs/plugin-qiankun@"^2.39.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peer react@"16" from @umijs/plugin-qiankun@2.39.2
zhuixunchen commented 1 year ago

请问一下大家后来怎么解决的呢?

xuchao996 commented 1 year ago

image

其实也告诉你了。

请问一下大家后来怎么解决的呢?

liwei511 commented 1 year ago

同问大家怎么解决的?降react是不可能的,使用node v10好像可以,求官网更新依赖

natashaamin commented 1 year ago

这有什么解决方案吗老师们?