gpt4 book ai didi

react-native - 错误 React Native CLI 对 native 依赖项使用自动链接,但以下模块是手动链接的

转载 作者:行者123 更新时间:2023-12-03 14:29:52 25 4
gpt4 key购买 nike

升级到 React Native 0.60 后出现此错误。

我尝试使用 react-native unlink <dependency> 手动取消链接每个手动链接的依赖项。如错误消息中的建议,但问题仍然存在。

错误信息如下:

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- react-native-admob (to unlink run: "react-native unlink react-native-admob")
- react-native-facebook-account-kit (to unlink run: "react-native unlink react-native-facebook-account-kit")
- react-native-fbsdk (to unlink run: "react-native unlink react-native-fbsdk")
- react-native-gesture-handler (to unlink run: "react-native unlink react-native-gesture-handler")
- react-native-linear-gradient (to unlink run: "react-native unlink react-native-linear-gradient")
- react-native-localization (to unlink run: "react-native unlink react-native-localization")
- react-native-restart (to unlink run: "react-native unlink react-native-restart")
- react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons")
- react-native-webview (to unlink run: "react-native unlink react-native-webview")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

最佳答案

我收到此错误“React Native CLI 对 native 依赖项使用自动链接,但以下模块是手动链接的”。然后,我通过使用这三个命令从我的 IOS 项目中删除这三个依赖项 react-native-gesture-handler、react-native-reanimated 和 react-native-vector-icons 来解决错误;

react-native unlink react-native-gesture-handler --platforms ios
react-native unlink react-native-reanimated --platforms ios
react-native unlink react-native-vector-icons --platforms ios
然后, $ cd ios然后 ios/myproject$ pod install然后 cd ..然后 myproject$ npx react-native run-ios

关于react-native - 错误 React Native CLI 对 native 依赖项使用自动链接,但以下模块是手动链接的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56922180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com