undefined is not a function, js engine: hermes
See original GitHub issueBug
Upgrading from react-native-device-info 2.3.2 → 3.0.0
Environment info
System:
OS: macOS 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 535.45 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
Android SDK:
API Levels: 22, 23, 24, 25, 26, 27, 28
Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3
System Images: android-19 | Intel x86 Atom, android-22 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
Android NDK: 20.0.5594570
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.60.5 => 0.60.5
npmGlobalPackages:
Library version: 3.0.0
Steps To Reproduce
https://github.com/react-native-community/react-native-device-info/releases/tag/v3.0.0 https://github.com/facebook/create-react-app https://facebook.github.io/react-native/docs/hermes/
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
[2.1.0] TypeError: undefined is not a function, js engine: hermes
I have error TypeError: undefined is not a function, js engine: hermes after update from 2.0.0 to 2.1.0. Only on Android and only...
Read more >ERROR TypeError: undefined is not a function, js engine
props.navigation is often undefined on initial render until react-navigation provides it. Try guarding the function: () => props.navigation?
Read more >typeerror undefined is not a function js engine hermes ... - 掘金
Recently I meet with an annoying Javascript error “undefined is not a function” during my Fiori development. , I finally find a more...
Read more >is not a function" mean? - Hermes Extensions für Magento
This means that a JavaScript function couldn't be found. Maybe customized templates are being used and not all required JavaScript files are loaded ......
Read more >Uncaught TypeError: 'undefined' is not a function
aFunctionObject(); // js; execute -> expression.that('returns').aFunctionObject // what the JS engine does. That expression may be complex. So when you get ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah - the react-native-localize API move was the biggest thing but I coordinated with the maintainer there to make sure every API existed with the same semantics. It’s a great package and should serve us all well. Cheers
@mikehardy I totally agree with you, seems like hermes needs more time to be used without any or with a minimum of problem.
@ethanneff @mikehardy Yeah, the API changed all to promises since 3.0.0 and some API was removed like
getDeviceLocation
that was the one that was causing my problem. Well, I just add thereact-native-localize
package for that and solve my problem for now.Thanks a lot for the answers!