Closed margintopt closed 1 year 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
请问一下大家后来怎么解决的呢?
其实也告诉你了。
请问一下大家后来怎么解决的呢?
同问大家怎么解决的?降react是不可能的,使用node v10好像可以,求官网更新依赖
这有什么解决方案吗老师们?
目前只能依赖到react16