错误日志如下:
ambiguous resolution: module * tries to require `SectionList`, but there are several files providing this module. You can delete or fix them:
* `..\node_modules\react-native\Libraries\Lists\SectionList.js`
* `..\package.json`错误原因:与工程名称冲突

解决办法:修改工程名称
网上其它解决方法:输入yarn start -- --reset-cache
本文介绍了一种在React Native项目中遇到的SectionList模块冲突问题及其解决方案。错误表现为多个文件提供相同的模块导致编译失败。文章提供了修改工程名称等解决方法。
2941

被折叠的 条评论
为什么被折叠?



