包react本机Web视图已被忽略,因为它包含无效的配置



这是版本旧版本=>quot;react native webview":"11.17.2";,新版本=>quot;react native webview":"11.18.0";

我正在使用webview来渲染html,但它需要或依赖于其他库

react-native-test-app
here is the warning I got

warn Package react-native-webview has been ignored because it contains invalid configuration. Reason: Cannot find module 'react-native-test-app/package.json'

需要堆栈:

  • /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/react-native-webview/react-nate.config.js
  • /卷/companyData/Meta_Quiz_App_ReactNative/node_modules/import fresh/index.js
  • /卷/companyData/Meta_Quiz_App_ReactNative/node_modules/cosmiconfig/dist/loaders.js
  • /卷/companyData/Meta_Quiz_App_ReactNative/node_modules/cosmiconfig/dist/createExplorer.js
  • /卷/companyData/Meta_Quiz_App_ReactNative/node_modules/cosmiconfig/dist/index.js
  • /Volumes/companyData/Meta_Quiz_App_ReactNative/nod_module/@react native community/cli/build/tools/config/readConfigFromDisk.js
  • /Volumes/companyData/Meta_Quiz_App_ReactNative/nod_module/@react native community/cli/build/tools/config/index.js
  • /Volumes/companyData/Meta_Quiz_App_ReactNative/nod_module/@react native community/cli/build/commands/install/install.js
  • /Volumes/companyData/Meta_Quiz_App_ReactNative/nod_module/@react native community/cli/build/commands/index.js
  • /卷/companyData/Meta_Quiz_App_ReactNative/nod_module/@react native community/cli/build/index.js
  • /卷/companyData/Meta_Quiz_App_ReactNative/node_modules/ReactNative/cli.js

当我安装这个时

npm i react-native-test-app

然后它在android上运行良好,但在ios上会导致pods问题。如果我回到旧版本,它仍然存在。提前感谢,请等待您的帮助

版本111.18.0似乎有缺陷,此问题会引发链接问题。目前的建议是降级11.17.2,您可以在他们的git回购相关问题上阅读更多信息;2430

升级您的软件包版本,因为此问题已在11.18.1版本中得到解决。

https://github.com/react-native-webview/react-native-webview/releases/tag/v11.18.1

11.18.0这个版本运行不太好。

11.17.2这个版本不太好用。

我使用11.15.0

yarn remove react-native-webview

yarn add react-native-webview@11.15.0

cd ios

吊舱安装

纱线版本列表

相关内容

最新更新