React-native Autolinking 过程没有拾取依赖项的依赖项。在 RN60 之前 - 我必须手动强制运行命令 react-native link 'nomeOfTheProject' name 的链接,但这不再起作用。这是我在 RN60 升级后运行此命令时得到的。
$react-native link react-native-autobridge
Unknown dependency. Make sure that the package you are trying to link is already installed in your "node_modules" and present in your "package.json" dependencies.
该依赖项位于 node_modules 下,但它确实不包含在主 package.json 中。
react-native-autobridge 包含在主要依赖项之一中。
node_modules
my_dependency
package.json // -> include react-native-autobridge
react-native-autobridge // -> react-native-autobridge gets downloaded under node_modules.
如果将 react-native-autobridge 直接添加到我的主 package.json,一切正常。但这不是我想要的。
有谁知道如何链接依赖项的依赖项?