Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native 清理缓存[mac] #4

Open
timi-black opened this issue Aug 16, 2019 · 0 comments
Open

react-native 清理缓存[mac] #4

timi-black opened this issue Aug 16, 2019 · 0 comments

Comments

@timi-black
Copy link
Contributor

timi-black commented Aug 16, 2019

  1. Clear watchman watches:

    watchman watch-del-all

  2. Delete the node_modules folder:

    sudo rm -rf node_modules && npm install

    sudo rm -rf node_modules && yarn

  3. Reset Metro Bundler cache:

    rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache

  4. 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant