Skip to content

Dependencies failed to load #142

@StatisMike

Description

@StatisMike

I'm developing a shinyApp, in which I use shinyBS mostly for popovers (created in renderUI, as they are used on dynamically generated lists). There seem to be a problem with attaching the dependencies from the package.

I've even added a bsButton (mainly to add these dependecies) to the static UI, but to no avail (it sometimes attaches the dependencies, but mostly I've got 404 error for both shinyBS.css and shinyBS.js).

I should add that the app I am developing is based on golem framework.

What worked for me is to add dependencies manually, using within tags$head:

    htmltools::htmlDependency("shinyBS",
                              version = "0.61.1",
                              src = "www",
                              script = "shinyBS.js",
                              stylesheet = "shinyBS.css",
                              all_files = T,
                              package = "shinyBS")

I think there could be an addition of function like shinyjs::useShinyjs(), waiter::use_waiter() etc, solely for explicitly attaching the dependencies in the UI head of the application, to remedy this kind of issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions