Skip to content

Instantly share code, notes, and snippets.

@wallace7souza
Last active August 19, 2020 16:37
Show Gist options
  • Save wallace7souza/b91df8fef3e18b0341597b9c8164dc65 to your computer and use it in GitHub Desktop.
Save wallace7souza/b91df8fef3e18b0341597b9c8164dc65 to your computer and use it in GitHub Desktop.
react native build main.jsbundle
https://medium.com/@onexlab.io/main-jsbundle-does-not-exist-fixed-7d92f466ba5a
in package.json add
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'
"error Unable to resolve module `react-native-webview` from `src/screens/TermoUsoScreenComponent.js`: react-native-webview could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules: rm -rf node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment