Can't read property 'deviceId' of undefined
See original GitHub issueAfter installing and linking react-native-device-info . I get the following error on iso simulator.
Can't read property 'deviceId' of undefined
packege.json
"dependencies": {
"react": "16.0.0",
"react-native": "0.50.3",
"react-native-device-info": "^0.12.1",
"react-native-fcm": "^10.0.3",
"react-native-router-flux": "^4.0.0-beta.23",
},
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:19 (1 by maintainers)
Top Results From Across the Web
TypeError: Cannot read properties of undefined (reading 'id')
What is happening: The function itemToForm() is being called before the this.item is ready. There are many strategies to avoid this error.
Read more >"Cannot read property ID of undefined" when trying to import ...
When trying to import locations from the BIM 360 Project Admin page an error is displayed: "Cannot read property ID of undefined".
Read more >Cannot read properties of undefined (reading 'id') - TrackJS
In this case, our code expects to have an object with a id property, but that object was not present. id is commonly...
Read more >Ionic openvidu deviceid undefined issue - Discourse
I am trying to integrate openvidu video and audio call based on the demo app with Ionic. But I keep getting the below...
Read more >"TypeError: Cannot read property 'decoded_payload' of ...
"TypeError: Cannot read property 'decoded_payload' of undefined" · General · function-node · rfrancis97 28 February 2022 03:21 #1. When I inject code:
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
remove libRNDeviceinfo-tvOS.a it works for me 😉
I resolved this by navigating to the ios directory of the project and running
pod install
. I guess that doesn’t get run in the linking stage for iOS? I also had to fix a couple of gradle things, but all of those functions work properly now on iOS and Android - both real and emulated devices for each system.