redux-thunk 安装报错

来源:9-7 【中间件】使用redux-thunk中间价实现异步action

慕设计3212119

2024-02-25

redux-thunk 安装报错:
PS D:\react-travel> npm install redux-thunk
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: react-travel@0.1.0
npm ERR! Found: redux@4.2.1
npm ERR! node_modules/redux
npm ERR! redux@"^4.2.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer redux@"^5.0.0" from redux-thunk@3.1.0
npm ERR! node_modules/redux-thunk
npm ERR! redux-thunk@"*" from the root projec

写回答

1回答

阿莱克斯刘

2024-02-28

报错信息显示你的redux版本好像不兼容,要不你试试课程的版本?可以在课程代码库的package.json中找到
0
0

React18 系统精讲 结合TS打造旅游电商平台

React18 精讲 + 结合 TS 实战 + 热门业务开发,获取必备技能

2008 学习 · 1024 问题

查看课程