-
Notifications
You must be signed in to change notification settings - Fork 18
react navigation leads to no such file or directory #19
Comments
additional hint: the example code is running in web browser... only simulator/device prints the error |
tested with simple new app from expo init - just worked |
Running into the same problem, specifically w/ React Navigation v6 (v5 was working). @naxmefy did you figure out any resolution here? |
Not yet - no time to investigate the Problem. |
Thanks for the response! I dug in and I think I figured out what was happening in my case. Hope this is helpful for you as well. TL;DR: There were some missing sub-dependencies:
So I was getting:
So I hovered over the Which showed me what file it was expecting and not finding: { errno: -2, syscall: 'lstat', code: 'ENOENT', path: node_modules/@react-navigation/elements/src/@react-native-masked-view' } My first move was to install - "@react-native-community/masked-view": "0.1.10",
+ "@react-native-masked-view/masked-view": "0.2.4", Finally the iOS simulator booted. Edit: I was also clearing cache every other try with this, in case it's useful to anyone watchman watch-del-all && \
rm -rf 'node_modules' \
'yarn.lock' \
'./.expo' \
'./apps/${YOUR_APP}/.expo' \
'./apps/${YOUR_APP}/node_modules' \
'./apps/${YOUR_APP}/yarn.lock' \
'./tmp' \
'$TMPDIR/metro-cache' \
'$TMPDIR/haste-*' \
&& yarn cache clean \
&& yarn install --force
# with simulator closed
xcrun simctl erase all |
Error Message
Steps to reproduce:
The text was updated successfully, but these errors were encountered: