Sitemap

Member-only story

main.jsbundle does not exist [fixed]

2 min readJun 10, 2020

--

No bundle URL present.

Make sure you’re running a packager server or
have include a .jsbundle file in your application
bundle.

If you are getting this error in React Native App. you can follow following steps to fix

Press enter or click to view image in full size

Video Tutorial

Step 1:

Open the package.json file and add the following line

"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"

Now your file looks like this following screenshot

Step 2:

Run following command. It will generate main.jsbundle file

yarn build:iosornpm run build:ios

--

--