Javascript
#
Common Issuesmodule
stream
can not be found: runyarn
in root dir. The postInstall script was not triggered after a new node module was installed. This happens e.g. after runningyarn upgrade-interactive
Error: Unable to resolve module
. Make sure watchman is installed and follow the instruction from the error message:- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset Metro Bundler cache:
rm -rf /tmp/metro-bundler-cache-*
ornpm start -- --reset-cache
.
- Clear watchman watches:
#
Build processStart the bundler for development with: yarn run start
The JS bundle can be build with: yarn run build:ios
or yarn run build:android
. This is usually not necessary, since the bundle is created in the deploy process.