-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
ERROR Invariant Violation: Your JavaScript code tried to access a native module that doesn't exist. (DrawerAndroid) #41694
Comments
|
|
I have the same problem, running react-native "0.72.3". The problem seems to be specifically related to xcode 15/ Sonoma, is this a regression of this issue that was fixed for xcode 14.3? #36635 |
|
i have the same issue, exist some solution? |
Facing the above issue... Error Dependencies |
Facing the same after RN upgrade from 71 to 72. ErrorUnable to resolve module ./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid from
/Users/.../node_modules/react-native/index.js:
None of these files exist:
* node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid(.rnrb.js|.native.js|.js|.rnrb.ts|.native.ts|.ts|.rnrb.jsx|.native.jsx|.jsx|.rnrb.tsx|.native.tsx|.tsx|.rnrb.mjs|.native.mjs|.mjs|.rnrb.cjs|.native.cjs|.cjs|.rnrb.htm|.native.htm|.htm|.rnrb.html|.native.html|.html|.rnrb.css|.native.css|.css|.rnrb.bmp|.native.bmp|.bmp|.rnrb.gif|.native.gif|.gif|.rnrb.png|.native.png|.png|.rnrb.jpg|.native.jpg|.jpg|.rnrb.jpeg|.native.jpeg|.jpeg|.rnrb.webp|.native.webp|.webp|.rnrb.svg|.native.svg|.svg|.rnrb.txt|.native.txt|.txt|.rnrb.md|.native.md|.md|.rnrb.json|.native.json|.json|.rnrb.wasm|.native.wasm|.wasm)
* node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid/index(.rnrb.js|.native.js|.js|.rnrb.ts|.native.ts|.ts|.rnrb.jsx|.native.jsx|.jsx|.rnrb.tsx|.native.tsx|.tsx|.rnrb.mjs|.native.mjs|.mjs|.rnrb.cjs|.native.cjs|.cjs|.rnrb.htm|.native.htm|.htm|.rnrb.html|.native.html|.html|.rnrb.css|.native.css|.css|.rnrb.bmp|.native.bmp|.bmp|.rnrb.gif|.native.gif|.gif|.rnrb.png|.native.png|.png|.rnrb.jpg|.native.jpg|.jpg|.rnrb.jpeg|.native.jpeg|.jpeg|.rnrb.webp|.native.webp|.webp|.rnrb.svg|.native.svg|.svg|.rnrb.txt|.native.txt|.txt|.rnrb.md|.native.md|.md|.rnrb.json|.native.json|.json|.rnrb.wasm|.native.wasm|.wasm)
115 | // $FlowFixMe[value-as-type]
116 | get DrawerLayoutAndroid(): DrawerLayoutAndroid {
> 117 | return require('./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid');
| ^
118 | },
119 | get FlatList(): FlatList {
120 | return require('./Libraries/Lists/FlatList'); Dependencies
PlatformsAndroid and iOS both |
Can we re-open this issue? |
any solution for this issue?, I realized that this error is displayed only on iOS, on Android this error does not appear. so if the application is used at a certain point the console compilation exits as it does not find those libraries that are from android |
Description
React Native Version
0.71.7
Output of
npx react-native info
System:
OS: macOS 14.1.1
CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
Memory: 825.24 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.2.0
path: ~/.nvm/versions/node/v21.2.0/bin/node
Yarn:
version: 1.22.21
path: ~/.nvm/versions/node/v21.2.0/bin/yarn
npm:
version: 10.2.3
path: ~/.nvm/versions/node/v21.2.0/bin/npm
Watchman:
version: 2023.11.20.00
path: /usr/local/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /Users/mbsousr/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.0
- iOS 17.0
- macOS 14.0
- tvOS 17.0
- watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 15.0.1/15A507
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.9
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/mbsousr/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.7
wanted: 0.72.7
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: false
newArchEnabled: false
(node:31972) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)Steps to reproduce
2.Define State:
- Use the useState hook to manage the application's color mode state ("dark" or "light").
- Initialize the default color mode as "light".
3.Load Asynchronous Fonts:
- Use the useFonts hook from expo-font to load asynchronous fonts required for the application.
- Ensure to wait until the fonts are loaded before proceeding.
4.Prevent Automatic Hiding of Splash Screen:
5.Execute Asynchronous Tasks:
6.Manually Hide the Splash Screen:
7.Render Main Component:
8.Provide Theme Context:
9.Toggle Color Mode:
Snack, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: