這是版本 舊版本 => "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/companyData/Meta_Quiz_App_ReactNative/node_modules/react-native-webview/react-native.config.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/import-fresh/index.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/cosmiconfig/dist/loaders.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/cosmiconfig/dist/createExplorer.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/cosmiconfig/dist/index.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/@react-native-community/cli/build/tools/config/index.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/@react-native-community/cli/build/commands/install/install.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/@react-native-community/cli/build/commands/index.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/@react-native-community/cli/build/index.js
- /Volumes/companyData/Meta_Quiz_App_ReactNative/node_modules/react-native/cli.js
當我安裝這個
npm i react-native-test-app
然后它對 android 作業正常,但對 ios 它會導致 pod 問題。如果我回到舊版本,它仍然存在。提前感謝,請等待您的幫助
uj5u.com熱心網友回復:
似乎版本11.18.0有問題,這個問題會引發鏈接問題。目前的建議是降級 11.17.2,您可以在他們的git repo 相關問題和2430中閱讀更多資訊
uj5u.com熱心網友回復:
升級您的軟體包版本,因為此問題已在版本 11.18.1 中得到解決。
https://github.com/react-native-webview/react-native-webview/releases/tag/v11.18.1
uj5u.com熱心網友回復:
11.18.0這個版本不太好用。
11.17.2這個版本不太好用。
我用 11.15.0
yarn remove react-native-webview
yarn add [email protected]光碟
吊艙安裝
紗線版本串列
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/454829.html
