Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shinylive fails on trailing comma in UI, where shiny is ok with it #141

Open
daniel-simeone opened this issue Dec 5, 2024 · 2 comments
Open

Comments

@daniel-simeone
Copy link

daniel-simeone commented Dec 5, 2024

library(shiny)
ui <- fluidPage(
  tagList(h1("hello"), 
             )
          )
server <- function(input, output) { }
shinyApp(ui = ui, server = server)

This extremely simple shiny app works fine in shiny. Notice the trailing comma after the h1().

It compiles/translates to shinylive no problem. But when you run it from the static site, it gets this:
Image

Clearly, the comma is a problem at run time for shiny live, but not for shiny.

@gadenbuie
Copy link
Contributor

Interestingly, it isn't a problem on shinylive.io.

library(shiny)
ui <- fluidPage(
  tagList(h1("hello"), )
)
server <- function(input, output) { }
shinyApp(ui = ui, server = server)

@daniel-simeone
Copy link
Author

daniel-simeone commented Dec 5, 2024 via email

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

No branches or pull requests

2 participants