You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project can never get past Loading dependency graph, done.
I rolled back to a previous version when it was working and reinstalled node_moduels with yarn, but it didn't help.
So I then tried starting from scratch, but the same happens with a completely blank react-native-firebase-starter (into which I imported my previous firebase project's credentials).
Note that it works fine when using a blank create-react-native-app app
Terminal shows the following output indefinitely (I've waited for up to 40 minutes):
Scanning folders for symlinks in /Users/dillon/Dropbox/Code/Projects/react-native-firebase-starter/node_modules (22ms)
...
Running Metro Bundler on port 8081.
...
Looking for JS files in
/Users/dillon/Dropbox/Code/Projects/react-native-firebase-starter
Metro Bundler ready.
Loading dependency graph, done.
The simulator never opens. If I try opening the simulator first and then running yarn start, the simulator doesn't change at all (or even open expo). Opening expo manually doesn't do anything either.
This has happened once before, and I managed to fix it. I believe it was from installing watchman (which I hadn't had installed globally with brew yet)
Here are the fixes I've tried so far, (mostly one at a time, and then rolling back changes):
deleting and reinstalling watchman with brew
watchman watch-del-all after each attempt at bundling
updating node
reinstalling cocoapods
putting various things in my Podfile that stackoverflow suggested
rm -rf node_modules && yarn
`npm start -- --reset-cache
react-native run-ios (this generates a ton of new files in the ios/ folder, but works initially, until I try to add an import statement of any module (even import firebase from 'firebase') in any of my js files and it throws an error on the ios simulator screen that it can't find the module. I can do this again to get that error for you if you'd like me to).
react-native upgrade
remove /usr/local/var/run/watchman/ then brew reinstall the watchman
make sure 127.0.0.1 localhost is in your /etc/hosts file. (it already was)
make sure you aren't using a VPN
uninstall watchman and yarn start
restart computer -___-
Erase all content and settings on xcode simulator
enter http://localhost:8081/index.ios.bundle into the browser resulted in the following output in browser window:
{"message":"Cannot find entry file index.ios.js in any of the roots: [\"/Users/dillon/Dropbox/Code/Projects/monitor\"]","name":"NotFoundError","type":"NotFoundError","status":404,"errors":[{"description":"Cannot find entry file index.ios.js in any of the roots: [\"/Users/dillon/Dropbox/Code/Projects/monitor\"]"}],"stack":"NotFoundError: Cannot find entry file index.ios.js in any of the roots: [\"/Users/dillon/Dropbox/Code/Projects/monitor\"]\n at DependencyGraph.getAbsolutePath (/Users/dillon/Dropbox/Code/Projects/monitor/node_modules/metro/src/node-haste/DependencyGraph.js:317:11)\n at /Users/dillon/Dropbox/Code/Projects/monitor/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:280:416\n at Generator.next (<anonymous>)\n at step (/Users/dillon/Dropbox/Code/Projects/monitor/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:11:445)\n at /Users/dillon/Dropbox/Code/Projects/monitor/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:11:605\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
If you're getting this loading error while running 'react-native run-ios' or building through xcode then try 'react-native run-android' after connecting an android device to your pc.
If not happening try deleting node-modules and 'npm install'.
Environment
macOS High Sierra 10.13.6
Xcode 9.4.1
React Native
version:react-native-cli: 2.0.1
react-native: 0.55.4
React Native Firebase
Version:"react-native-firebase": "^4.3.6",
Firebase
Module:auth, database
typescript
?no
My project can never get past
Loading dependency graph, done.
I rolled back to a previous version when it was working and reinstalled node_moduels with yarn, but it didn't help.
So I then tried starting from scratch, but the same happens with a completely blank
react-native-firebase-starter
(into which I imported my previous firebase project's credentials).Note that it works fine when using a blank
create-react-native-app
appTerminal shows the following output indefinitely (I've waited for up to 40 minutes):
...
...
The simulator never opens. If I try opening the simulator first and then running
yarn start
, the simulator doesn't change at all (or even open expo). Opening expo manually doesn't do anything either.This has happened once before, and I managed to fix it. I believe it was from installing watchman (which I hadn't had installed globally with brew yet)
Here are the fixes I've tried so far, (mostly one at a time, and then rolling back changes):
watchman watch-del-all
after each attempt at bundlingrm -rf node_modules && yarn
react-native run-ios
(this generates a ton of new files in theios/
folder, but works initially, until I try to add an import statement of any module (evenimport firebase from 'firebase'
) in any of my js files and it throws an error on the ios simulator screen that it can't find the module. I can do this again to get that error for you if you'd like me to).react-native upgrade
/usr/local/var/run/watchman/
thenbrew reinstall the watchman
127.0.0.1 localhost
is in your/etc/hosts
file. (it already was)yarn start
Erase all content and settings
on xcode simulatorhttp://localhost:8081/index.ios.bundle
into the browser resulted in the following output in browser window:package.json:
The text was updated successfully, but these errors were encountered: