Cannot read property 'camerapreview' of undefined

Cannot read property 'camerapreview' of undefined

  

this is my error im using https://github.com/apache/cordova-plugin-media-capture


TypeError: Cannot read property 'camerapreview' of undefined
    at https://svving-it.outsystemscloud.com/Svvingit/scripts/Svvingit.Common.Members.controller.js?l2tIqdD3J3UJmqN8ZBTwUA:73:16
    at Controller.e.safeExecuteJSNode (https://svving-it.outsystemscloud.com/Svvingit/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:8050)
    at Controller.onRenderAction (https://svving-it.outsystemscloud.com/Svvingit/scripts/Svvingit.Common.Members.controller.js?l2tIqdD3J3UJmqN8ZBTwUA:29:36)
    at https://svving-it.outsystemscloud.com/Svvingit/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:16410
    at d (https://svving-it.outsystemscloud.com/Svvingit/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31225)
    at f (https://svving-it.outsystemscloud.com/Svvingit/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:30971)
    at Object.p [as tryCatchFinally] (https://svving-it.outsystemscloud.com/Svvingit/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:1:31468)
    at Controller.t.safeExecuteClientAction (https://svving-it.outsystemscloud.com/Svvingit/scripts/OutSystems.js?sdcuBcomxTNu8PYGfXaUiQ:9:16374)
    at Object.onRenderAction (https://svving-it.outsystemscloud.com/Svvingit/scripts/Svvingit.Common.Members.controller.js?l2tIqdD3J3UJmqN8ZBTwUA:11:19)
    at Controller.onRenderEventHandler (https://svving-it.outsystemscloud.com/Svvingit/scripts/Svvingit.Common.Members.controller.js?l2tIqdD3J3UJmqN8ZBTwUA:48:47)

Hello Gene,

I'm probably missing something, but the plugin you mention doesn't seem to define a camerapreview object... according to the documentation, it defines a navigator.device.capture.

Maybe the camera plugin does what you need? Are you looking for any specific functionality?

Cheers,
R