ReactNative 74, cameraWithTensors
fails: Cannot read property 'Type' of undefined
#8429
Labels
cameraWithTensors
fails: Cannot read property 'Type' of undefined
#8429
System information
Describe the current behavior
I am using a TFJS model from Google Vertex AI, Edge, exported per docs for Object Detection.
Once I have imported the model
bin
files, andsetModel(true)
, then it is ready to render theTensorCamera
component. Unfortunately, theonReady
callback from TensorCamera seems to be failing, but not crashing the app. The camera still renders and seems like it's working, but I cannot handle the stream because it's never ready. There are some warnings in the terminal:This error goes away when I swap the TensorCamera for the default CameraView, so it feels very certain that something is not compatible with ReactNative 74.
Describe the expected behavior
Based on following the flow from the TFJS example, I would expect newer versions to work as described.
Standalone code to reproduce the issue
Other info / logs
I am unable to find any logs in the console of the device, it seems like the error is being swallowed
I also noticed this logged issue, related to ReactNative 74: #8344
The text was updated successfully, but these errors were encountered: