我试图将 react-redux 用于我的本机应用程序,但不知何故出现了这个问题
error: bundling failed: Error: Unable to resolve module `./hooks/useDispatch` from `C:\Users\TF\lesson\node_modules\react-redux\lib\index.js`: The module `./hooks/useDispatch` could not be found from `C:\Users\TF\lesson\node_modules\react-redux\lib\index.js`. Indeed, none of these files exist:;
我尝试重新安装并重新运行 react-redux@6,但我似乎无法理解为什么它需要一个 hook\useDispatch。
我如何才能正确完成安装?
这个解决方案解决了我的问题,打开终端并运行
react-native start --reset-cache并保持打开状态并
react-native run-android在另一个终端中运行它
| 归档时间: | 
 | 
| 查看次数: | 1955 次 | 
| 最近记录: |