-
Notifications
You must be signed in to change notification settings - Fork 2
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: cannot read property 'style' of undefined, js engine: hermes #321
Comments
I'm having the exact same issue |
This issue is happening in react-native-material-dropdown. |
infact im tired. i have been facing this issue since 3 days now. and i do not even know where the isse is coming from. see a my dependencies here { |
I upgraded my project from React Native 0.63 to 0.78.1 and am now stuck on the same issue. If anyone has found a solution, please help! |
@vivek-sharma-sws - I faced this issue due to react-native-material-dropdown |
@gkasireddy202 Yes, I've viewed your comment and removed the react-native-material-dropdown library, reinstalled node modules, and cleaned the cache before reinstalling the pods, but I'm still facing the same issue. Should I share my package.json file for clarification? |
@vivek-sharma-sws - You have to debug the issue.
|
any solution? |
A few days ago, I upgraded my React Native version from 0.73 to 0.78.1 and encountered the same issue. In my case, I discovered that some libraries were using ComponentName.propTypes.style. Since propTypes is no longer available, the code was attempting to access the style property from propTypes, which caused the app to crash. I found that two third-party packages in my project were using this approach:
These packages may differ in your case. |
I'm not using react-native-snap-carousel; |
in your VS code, search for |
Environment
System:
OS: macOS 15.3
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 52.68 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.7.3
path: /usr/local/bin/node
Yarn: Not Found
npm:
version: 10.5.0
path: /usr/local/bin/npm
Watchman:
version: 2023.03.13.00
path: /usr/local/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /Users/gopi/.rvm/gems/ruby-2.7.6/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
API Levels:
- "23"
- "24"
- "25"
- "26"
- "27"
- "28"
- "29"
- "30"
- "31"
- "32"
- "33"
- "34"
Build Tools:
- 29.0.2
- 30.0.3
- 33.0.1
- 34.0.0
System Images:
- android-29 | Google APIs Intel x86 Atom
- android-29 | Google Play Intel x86 Atom
- android-30 | Google APIs Intel x86 Atom
- android-32 | Google APIs Intel x86 Atom_64
- android-32 | Google Play Intel x86 Atom_64
- android-33 | Google APIs Intel x86 Atom_64
- android-33 | Google Play Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 18.0.2.1
path: /Library/Java/JavaVirtualMachines/jdk-18.0.2.1.jdk/Contents/Home/bin/javac
Ruby:
version: 2.7.6
path: /Users/gopi/.rvm/rubies/ruby-2.7.6/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: false
Things I’ve done to figure out my issue
I'm upgrading my app from 0.73.11 to 0.78.0. The app is successfully built in iOS and getting the below error.
[Runtime not ready]: Typeerror: cannot read property 'style' of undefined, js engine: hermes
Upgrading version
0.78.0
Description
I'm upgrading my app from 0.73.11 to 0.78.0. The app is successfully built in iOS and getting the below error.
[Runtime not ready]: Typeerror: cannot read property 'style' of undefined, js engine: hermes
Reproducible demo
I'm upgrading my app from 0.73.11 to 0.78.0. The app is successfully built in iOS and getting the below error.
[Runtime not ready]: Typeerror: cannot read property 'style' of undefined, js engine: hermes
The text was updated successfully, but these errors were encountered: