Shinydashboard package not working properly

Keep getting the following warning message after deploying my app:
Screenshot 2022-11-16 at 11.28.17 PM

It seems like the shinydashboard package is failing for unknown reasons. With this error, all the menuItems are listed horizontally across the entire page. Please help!

library(shinydashboard)
library(leaflet.extras2)
library(shiny)

ui <- dashboardPage(
  dashboardHeader(title = "Dynamic sidebar"),
  dashboardSidebar(
    sidebarMenuOutput("menu")
  ),
  dashboardBody()
)

server <- function(input, output) {
  output$menu <- renderMenu({
    sidebarMenu(
      menuItem("Menu item", icon = icon("calendar"))
    )
  })
}
shinyApp(ui, server)

I was not able to reproduce your error. Could you do packageVersion('shinyDashboard')?

it is 0.7.2

The app seems to run properly locally, but all my menuItems() are all messed up after deployment.

Just found out the leaflet.extras2 package is what causing the problem. Both shinydashboard and leaflet.extras2 has a function called menuItem().

Adding shinydashboard::menuItem() solved the problem

Screenshot 2022-11-17 at 5.13.01 PM

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.