-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
-
Clear watchman watches:
watchman watch-del-all
-
Delete the
node_modules
folder:sudo rm -rf node_modules && npm install
或
sudo rm -rf node_modules && yarn
-
Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
-
Remove haste cache:
rm -rf /tmp/haste-map-react-native-packager-*
5.进入ios中执行 pod install
否则会报以下错误
Unhandled JS Exception: Invariant Violation: requireNativeComponent: "RNCWKWebView" was not found in the UIManager.
This error is located at:
in RNCWKWebView (at WebView.ios.js:289)
in RCTView (at View.js:35)
in View (at WebView.ios.js:292)
in WebView (at Canvas.js:154)
in RCTView (at View.js:35)
in View (at Canvas.js:153)
in Canvas (at App.js:86)
in RCTView (at View.js:35)
in View (at App.js:84)
in RCTView (at View.js:35)
in View (created by Portal.Host)
in Portal.Host (created by Provider)
in ThemeProvider (created by Provider)
in LocaleProvider (created by Provider)
in Provider (at App.js:83)
in App (at renderApplication.js:40)
in RCTView (at View.js:35)
in View (at AppContainer.js:98)
in RCTView (at View.js:35)
in View (at AppContainer.js:115)
in AppContainer (at renderApplication.js:39)
Metadata
Metadata
Assignees
Labels
No labels