plotly / plotly/react-plotly.js

Uncaught TypeError: Cannot read property 'match' of null when clicking any options in the ModeBar

Offen
#215 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
138
Ø Merge
3 T. 2 Std.
Gemergte PRs (30 T.)
4

Beschreibung

"plotly.js": "^1.55.2"
"react": "^16.13.1"
"react-plotly.js": ^"2.5.0"

I am using react-plotly.js for our project.

I haven't modified much on this ModeBar (image below)

image

Added only two configs to the ModeBar

config={{
          displayModeBar: true,
          toImageButtonOptions: {
            filename: "something",
          },
        }}

It doesn't always happen but time to time, by clicking one of the options from the ModeBar, it still does the job without crashing the app but in console, it prints the following errors.

image

Right after I created this issue, just refreshed the app and went over exact same steps but no warning message this time.

I am quite new to React and this error message only comes from ModeBar buttons so I am assuming it's something to do with plotly.js library?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit den gemeldeten Versionen von plotly.js, react und react-plotly.js sowie der ModeBar-Konfiguration mit displayModeBar und toImageButtonOptions. Reproduziere den intermittierenden Fehler durch Klicken auf die ModeBar-Optionen, erfasse den Stacktrace der Konsole und ermittle, ob der Fehler zu diesem React-Wrapper oder zu plotly.js gehört; das Issue ist gelöst, sobald die Zuständigkeit und eine zuverlässige Reproduktion festgestellt wurden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, react
Bereich
data-visualization, frontend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.