instamobile / recipes-app-react-native

Recipes App in React Native
https://instamobile.io
MIT License
770 stars 254 forks source link

Can't build and run #1

Closed ewoody closed 4 years ago

ewoody commented 5 years ago

I can't build and run this app on Mac.

What I did

  1. npm install
  2. react-native run-ios --simulator="iPhone 8"

The error on iOS simulator -

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(index.js: Cannot find module '/Users/myname/Projects/FoodApp/node_modules/@react-native-community/cli/node_modules/metro-react-native-babel-transformer/src/index.js' Require stack:

38-[RCTCxxBridge loadSource:onProgress:]_block_invoke.213 RCTCxxBridge.mm:414 invocation function for block in attemptAsynchronousLoadOfBundleAtURL(NSURL, void (RCTLoadingProgress) block_pointer, void (NSError, RCTSource) block_pointer) 80-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]_block_invoke -[RCTMultipartStreamReader emitChunk:headers:callback:done:] -[RCTMultipartStreamReader readAllPartsWithCompletionCallback:progressCallback:] -[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:] _CFNetworkHTTPConnectionCacheSetLimit NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK -[NSBlockOperation main] __NSOPERATION_IS_INVOKING_MAIN -[NSOperation start] NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION NSOQSchedule_f _dispatch_block_async_invoke2 _dispatch_client_callout _dispatch_continuation_pop _dispatch_async_redirect_invoke _dispatch_root_queue_drain _dispatch_worker_thread2 _pthread_wqthread start_wqthread

mrcflorian commented 4 years ago

All you need to do is run "npm install && expo start". Closing this since it was on a very old version - let me know if you still encounter any issues with the new updates