返回

javascript-Package react native webview已被忽略,因为它包含无效的配置

发布时间:2022-04-07 05:31:56 658
# 前端

这是旧版本=>&引用;“react native webview”:&引用^11.17.2“;,新版本=>&引用;“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/company data/Meta _ Quiz _ App _ react native/node _ modules/react-native-webview/react-native . config . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/import-fresh/index . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/cosmiconfig/dist/loaders . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/cosmiconfig/dist/create explorer . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/cosmiconfig/dist/index . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/@ react-native-community/CLI/build/tools/config/readconfigfromdisk . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/@ react-native-community/CLI/build/tools/config/index . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/@ react-native-community/CLI/build/commands/install/install . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/@ react-native-community/CLI/build/commands/index . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/@ react-native-community/CLI/build/index . js
  • /Volumes/company data/Meta _ Quiz _ App _ react native/node _ modules/react-native/CLI . js

当我安装这个

npm i react-native-test-app

那么,它在安卓系统上运行正常,但在ios系统上却会导致pods问题。如果我回到旧版本,它仍然存在。提前感谢,请等待您的帮助

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(2)
按点赞数排序
用户头像