[FIXED] main.jsbundle does not exist. this must be a bug with

Andre Feri
Jun 15, 2023

--

React Native App

Especially for M1 Mac, you can easily fixed it by replace Bundle React Native code and image script with like example below.

cd $PROJECT_DIR/..
export NODE_BINARY=/Users/andreferi/.nvm/versions/node/v16.10.0/bin/node
./node_modules/react-native/scripts/react-native-xcode.sh

In my case is using nvm for installing node.js, that’s why the path is directing to nvm folder. You can change the NODE_BINARY path with your own.

How i know the installation node path ? well, you can easily run in your terminal this script :

which node

That’s All! 🎉

THANK YOU!!

If this post is helpful, please give me a clap. 👏

--

--

Andre Feri
Andre Feri

Written by Andre Feri

Love about the wonderful future of tech :)

No responses yet