React Native "Missing Package URL"

I get "No link to site." only when trying to run in release mode in xcode. I can run the application in debug mode.

I ran react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle and this gives me the following error:

 Unexpected token: keyword (default) 

It does not show line numbers or files from which an error may occur. Is there a better way to get more context around this error?

I also tried to delete the assembly folder, npm run clean, delete the node_modules folder, install the yarn without any luck.

This most accurate build worked for me a few days ago, so I'm not sure what has changed. I am still on the same version of MacOS, xcode and am reacting to native.

 RN = 0.43.3 Xcode = 8.3.2 MacOS = Sierra 10.12.5 
+5
source share
2 answers

I was able to solve this by updating the watchman. Here are the steps I took:

  • brew update
  • brew unlink watchman
  • brew install watchman
  • I ran npm run clean , which I installed for this:

     rm -rf ios/build; rm -rf ios/build; rm -rf android/build; rm -rf android/app/build; rm -rf $TMPDIR/react* ; rm -f ios/main.jsbundle; rm -rf node_modules; rm yarn.lock || true; npm cache clean; yarn cache clean 
  • yarn install or npm install if you are not using yarn

Hope this helps others having the same issue.

+1
source

Removed node_modules and npm install again, and the error went away. Someone seems to have had a typo ...

0
source

All Articles