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

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')

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (5 by maintainers)

Most upvoted comments

@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.

@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 ?

Really sorry if I confuse you @RealLankinen . I mean the code from @tafsiri https://github.com/tensorflow/tfjs/blob/master/tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx. I have run locally this code without any issue. but the issue occurs when I tried to use the mobilenet for simple image classifications