daattali/shinyscreenshot

"resolved is undefined" error with screenshotButton in shinylive

Open

#29 opened on Jan 4, 2024

View on GitHub
 (9 comments) (0 reactions) (0 assignees)R (9 forks)github user discovery
help wanted

Repository metrics

Stars
 (72 stars)
PR merge metrics
 (PR metrics pending)

Description

I've been asked to get a shiny app running on shinylive (in-browser running of shiny apps via webr) and I get this error image:

image

unless I comment out the screenshotButton call in the ui section, in which case the app works fine in the browser.

I can only guess this is because of the way browser screenshot code works, and its beyond me to debug it at this time. My main motivation for reporting it here is so if anyone searches for "shinylive resolved is undefined" they can see this and it will save them a bunch of debugging to discover the issue is with screenshotButton.

Contributor guide