Error: Cannot read property 'key' of null
- 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
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