adrai / adrai/flowchart.js

Error: Cannot read property 'key' of null

Aperta
#65 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
8.7k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.