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.

undefined is not an object (evaluating 'environment_1.env().platform.fetch')

See original GitHub issue

TensorFlow.js version

@tensorflow-models/handpose”: “0.0.3” “@tensorflow/tfjs”: “^1.7.4”

Browser version

React Native 37.0.1 Expo 37.0.3

Describe the problem or feature request

I tried to use Handpose model on React Native but it gives an error:

undefined is not an object (evaluating 'environment_1.env().platform.fetch')

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tafsiricommented, May 26, 2020

@subodha I think this may be related to something in your expo setup (potentially related to typescript support), similarish issues are described here https://forums.expo.io/t/sdk-33-error-unable-to-resolve-module-node-modules-expo-appentry/24470.

I made fresh managed expo app (https://github.com/tafsiri/tfjs-expo-managed-example) and could not reproduce.

1reaction
gravestarcommented, Nov 25, 2020

@subodha I think this may be related to something in your expo setup (potentially related to typescript support), similarish issues are described here https://forums.expo.io/t/sdk-33-error-unable-to-resolve-module-node-modules-expo-appentry/24470.

I made fresh managed expo app (https://github.com/tafsiri/tfjs-expo-managed-example) and could not reproduce.

i cloned your repo and it works as a charm, and i’m going to continue develop this to get face recognition / face match and store the data to database, do you think its possible ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

undefined is not an object (evaluating 'env().platform.fetch') for ...
I always get this response when I tried to load() the posenet from @tensorflow-models/posenet . I am using React Native CLI not Expo....
Read more >
In react native, on executing posenet.load() getting error ...
TypeError: undefined is not an object (evaluating 'env().platform.fetch'), on calling the posenet.load(). It used to work fine until last week.
Read more >
React Native: undefined is not an object (evaluating '_this ...
Hi everybody, I have a react-native app created with RN CLI, using react-native 0.63, I'm trying to use SectionList but I'm getting the ......
Read more >
undefined is not an object (evaluating 'device.id') in ... - YouTube
ERROR TypeError: undefined is not an object ( evaluating 'device.id')Please do like share and comment if you like the video please do hit ......
Read more >
The R Environment for Statistical Computing and Graphics
R is free software and comes with ABSOLUTELY NO WARRANTY. ... identical(globalenv(), as.environment(1)) ## is TRUE ... get, exists, environment. Examples.
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 Hashnode Post

No results found