Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Cannot read property URI of undefined #136

Open
mayankkataria opened this issue Feb 21, 2021 · 1 comment
Open

Cannot read property URI of undefined #136

mayankkataria opened this issue Feb 21, 2021 · 1 comment

Comments

@mayankkataria
Copy link

My code:

this.screenShot.URI(80)
    .then(ev => console.log('ss success: ', ev))
    .catch(err => console.log('ss error: ', err));

When this code is executed, I'm getting the following error msg:

ss error:  TypeError: Cannot read property 'URI' of undefined
    at index.js:41
    at common.js:8
    at new ZoneAwarePromise (zone-evergreen.js:960)
    at tryNativePromise (common.js:7)
    at getPromise (common.js:26)
    at Screenshot.push.jAoO.Screenshot.URI (index.js:40)
    at SketchPage.done (sketch.page.ts:478)
    at SketchPage_ion_row_1_Template_ion_button_click_15_listener (template.html:31)
    at executeListenerWithErrorHandling (core.js:14316)
    at wrapListenerIn_markDirtyAndPreventDefault (core.js:14351)

Is there any way to get rid of it?

Thanks

@rluque8
Copy link

rluque8 commented May 6, 2021

The plugin does not work on browser as it cannot take screenshots. It works fine on device though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants