Skip to content

Dash does not work without explicitly loading {dashHtmlComponents} #260

Closed

Description

@daattali

It seems that loading {dashHtmlComponents} is a requirement for a dash app to work, and that namespacing it doesn't work.

The below app works:

library(dash)
library(dashHtmlComponents)
app <- Dash$new()
app$layout(htmlDiv("test"))
app$run_server()

But the following doesn't render and results in javascript errors:

library(dash)
app <- Dash$new()
app$layout(dashHtmlComponents::htmlDiv("test"))
app$run_server()

Activity

  1. alexcjohnson commented on Jun 14, 2021

    @alexcjohnson
    Collaborator

    @daattali post #243 (which hasn't been published yet) there shouldn't even be a dashHtmlComponents package anymore - is that included in the starting point you're working with? Is this only an issue with dashHtmlComponents or is it also a problem if you reference other packages (core like dashCoreComponents or non-core like dashBio) via namespace?

  2. daattali commented on Jun 14, 2021

    @daattali
    ContributorAuthor

    Haven't checked the other packages. I'm using latest CRAN version, but shouldn't be an issue to modify code once dashHtmlComponents gets unified.

  3. daattali commented on Jun 15, 2021

    @daattali
    ContributorAuthor

    Can confirm my code chunk above does work in the dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions