-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").SafeAreaProviderCompat') #11006
Comments
Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link, a www.typescriptlang.org/play link or link to a GitHub repo under your username). Can you provide a minimal repro which demonstrates the issue? Please try to keep the repro as small as possible and make sure that we can run it without additional setup. A repro will help us debug the issue. The issue will be closed automatically after a while if you don't provide a repro. |
I am seeing a similar issue after upgrading from:
to any later version. I tried commenting everything from my app except a simple screen, and I am still getting this. When I switch the navigator to a non-native stack navigator, I am getting this error:
@mahdinjim I see you provided a repro repository, but for me it builds and run correctly. Is it supposed to reproduce the issue? |
I updated everything to lates. I experienced the same error at first but found a fix. While troubleshooting and looking at above pictures i noticed two modules which @react-navigation requires but are undefined:
I included them in my package.json, yarn install, cleaned build folder and rebuild. Everything now works as expected. Guess @react-navigation should either update documentation to tell users that these two packages are required or include them in the @react-navigation package node_modules automatically. My packages:
|
Same issue. Work environment:
I remember it works fine before, but happened recently. |
Worked for me. Thanks a lot. |
That worked for me as well thank you very much |
When starting app without masked-vew dependency it causes an error importing SafeAreaProviderCompat as stated on this thread: react-navigation/react-navigation#11006 This commit applies the fix suggested here: react-navigation/react-navigation#11006 (comment)
Current behavior
I upgraded to react native 0.70.5 and also upgraded react-navigation/native to version 6.0.13 and react-navigation/native-stack to version 6.9.1, after successfully running the project on ios I get the following exceptions:
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[13], "@react-navigation/elements").SafeAreaProviderCompat')
Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro. You may also want to run
yarn
ornpm install
.Error: Requiring module "node_modules/@react-navigation/elements/src/index.tsx", which threw an exception: Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro. You may also want to run
yarn
ornpm install
.I cleaned the project and re install everything but the issue persisted
Expected behavior
run normally
Reproduction
//
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: