'React Native Vision Camera using Expo

I have an Expo managed project in which I would like to use the React Native Vision Camera. The Expo Camera does not provide enough functionalities for my app. After following the Getting Started, I get the following errors when running the app in my web browser:

enter image description here enter image description here

I have imported the Camera module using import { Camera } from 'react-native-vision-camera'; and adapted my app.json to include

"plugins": [
    [
        "react-native-vision-camera",
        {
            "cameraPermissionText": "$(PRODUCT_NAME) needs access to your Camera."
        }
    ]
]


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source