question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't read property 'deviceId' of undefined

See original GitHub issue

After 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",
	},
screen shot 2017-11-11 at 13 59 40

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gusbuenocommented, Jan 25, 2018

remove libRNDeviceinfo-tvOS.a it works for me 😉

3reactions
noahtallencommented, Jan 24, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found