adrai / adrai/flowchart.js

Error: Cannot read property 'key' of null

Offen
#65 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
8.7k
Forks
1.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Trying to get the basic example to work with no luck.
this is what is in the body of my page:

``` html

Diagram will be placed here

var diagram = flowchart.parse('st=>start: Start:>http://www.google.com[blank]\n' +
'e=>end:>http://www.google.com');
diagram.drawSVG('diagram');

```

Always get the following error no matter what is inside the `parse()`.

```
TypeError: Cannot read property 'key' of null
at getDisplaySymbol (http://localhost:3000/include/plugins/flowchart/1.4.2/flowchart.js:1205:28)
at constructChart (http://localhost:3000/include/plugins/flowchart/1.4.2/flowchart.js:1236:26)
at Object.chart.drawSVG (http://localhost:3000/include/plugins/flowchart/1.4.2/flowchart.js:1269:11)
```

How do I solve this and what is the least I need to create a flowchart?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduce the exact basic example from the issue, then inspect flowchart.js at getDisplaySymbol, constructChart, and chart.drawSVG, which appear in the stack trace. Confirm the minimum valid parse() input and ensure the example renders without the null-key error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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