您当前的位置: 首页 > 

ITKEY_

暂无认证

  • 0浏览

    0关注

    732博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unable to resolve module react-native-pager-view

ITKEY_ 发布时间:2021-07-02 11:18:40 ,浏览量:0

报错信息

Unable to resolve module react-native-pager-view from /home/apex/.wp/expo/jsjs/node_modules/@ant-design/react-native/lib/carousel/index.js: react-native-pager-view could not be found within the project.

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-* 22 | var _reactNative = require(“react-native”); 23 |

24 | var _reactNativePagerView = _interopRequireDefault(require(“react-native-pager-view”)); | ^ 25 | 26 | var _style = require("…/style"); 27 |

undefined Unable to resolve module react-native-pager-view from /home/apex/.wp/expo/jsjs/node_modules/@ant-design/react-native/lib/carousel/index.js: react-native-pager-view could not be found within the project.

在这里插入图片描述

解决办法
yarn add react-native-pager-view

重启项目,问题成功解决! 项目地址: https://github.com/callstack/react-native-pager-view

关注
打赏
1665243900
查看更多评论
立即登录/注册

微信扫码登录

0.0357s