Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Dynamically adding graphs fails when no graph exist before #162

Description

@bperrenoud

Using dash-core-components v0.18.1
When trying to add graphs dynamically (each time a button is clicked, a new graph is added), an error appears in the console:

bundle.js?v=0.11.2:9 Uncaught (in promise) Error: dash_core_components was not found.
at Object.resolve (bundle.js?v=0.11.2:9)
at s (bundle.js?v=0.11.2:9)
at Array.map ()
at s (bundle.js?v=0.11.2:9)
at Array.map ()
at s (bundle.js?v=0.11.2:9)
at Array.map ()
at s (bundle.js?v=0.11.2:9)
at e.value (bundle.js?v=0.11.2:9)
at p._renderValidatedComponentWithoutOwnerOrContext (react-dom@15.4.2.min.js?v=0.11.2:13)

The error doesn't show up if a graph has been added when the page loaded. To reproduce:

  • Run the sample code joined to this example
  • Click on the button
  • See the error triggered by bundles.js

Then, uncomment line 12 of ContentController.py and

  • Run the sample code joined to this example
  • Click on the button
  • No error is triggered, the graphs show up

DashTest.zip

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