No bundle URL present error

Luis Bajaña
Sep 4, 2018 · 2 min read

I’ve been ignoring this issue for months, every time I solve it in a different way, but now it’s time for documenting the solution.

When I create a new project in React Native I’m getting this error:

No bundle URL present error

When you look up for this problem in Google you find this answer, which basically is saying delete your node_modules folder and execute npm install again. In my case that didn’t work, I’m still getting the error.

Logically something is wrong with my versions, at the moment this is how my package.json looks like:

{“name”: “Maps”, “version”: “0.0.1”,
“private”: true,
“scripts”: {
“start”: “node node_modules/react-native/local-cli/cli.js start”,
“test”: “jest”
},
“dependencies”: {
“react”: “16.4.1”,
“react-native”: “0.56.0”
},
“devDependencies”: {
“babel-jest”: “23.4.2”,
“babel-preset-react-native”: “^5”,
“jest”: “23.5.0”,
“react-test-renderer”: “16.4.1”
},
“jest”: {
“preset”: “react-native”
}
}

Troubleshooting

When executing npm start I’m getting:

npm ERR! Make sure you have the latest version of node.js and npm installed.

Hypothesis 1: There is a problem with my node version
When executing node -v I’m getting: v6.11.5, so I will upgrade my node version (article of managing node versions).

Results changing to node v8.11.2

npm start script seems to be working now

So, ok, problem #1 solved, let’s run react-native run-ios to see what are we getting.

Apparently, problem solved

First time in my life that hypothesis one is the winner.

Luis Bajaña

Written by

Web and Mobile Developer, constantly inventing things.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade