flowchart.js icon indicating copy to clipboard operation
flowchart.js copied to clipboard

I'm getting TypeError: Cannot set property 'next' of undefined

Open raptor235 opened this issue 11 years ago • 9 comments

on the following input..

st=>start: Create New Multisite Site e=>end

op1=>operation: Check if URL has activation ID

sub1=>subroutine: Create Activation ID sub2=>subroutine: Create User sub3=>subroutine: Create Domain sub4=>subroutine: Create Subscription sub5=>subroutine: Assign Referal

cond=>condition: Yes or No?: cond2=>condition: User Exists?:

io=>inputoutput: Save activation_id in plugin io2=inputoutput: Get User

st->op1->cond cond(yes)->io->e cond(no)->sub1(right)->cond2 cond2(no)->sub2(right)->io2 cond2(yes)->io2->sub3->sub4->sub5

particularly sticking io2 in the last line breaks things

any idea why?

raptor235 avatar Aug 05 '14 20:08 raptor235

same thing happens to me.... any idea...? thanks in advance,

crosemffet avatar Aug 06 '14 00:08 crosemffet

Perhaps the ":" at the end of the conditions?

adrai avatar Aug 06 '14 04:08 adrai

no, it's this line: io2=>inputoutput: Get User ">"

adrai avatar Aug 06 '14 06:08 adrai

the example provided in docs doesn't work for me. here's the code:

Diagram will be placed here

a javascript error is fired, error is: Cannot set property 'next' (maybe in line 5) and the execution stops. I'm usins IE9, jquery 1.9, latest raphael 2.1.2. all js versions minified

crosemffet avatar Aug 06 '14 10:08 crosemffet

can someone ( @raptor235 ) confirm this?

adrai avatar Aug 06 '14 10:08 adrai

Perhaps It has whitespaces before directives.

Javey avatar Nov 13 '14 08:11 Javey

Same error for the following diagram, while trying it online on http://flowchart.js.org/ :

st=>start: Start
e=>end: End
recruitment=>operation: Recruitment
eligibility=>operation: Eligibility
consent=>operation: Consent
randomization=>condition: Randomization
intervention=>inputoutput: Intervention
measurement1=>subroutine: Measurement
measurement2=>subroutine: Measurement2

st->recruitment->eligibility->consent-> randomization
randomization(experimental)->intervention->measurement->e
randomization(control)->measurement->e

bunyk avatar Nov 30 '16 12:11 bunyk

cond2(no)->sub2(right)->io2 no need for (right), by the way, there's a missing">" afterio2=

st=>start: Create New Multisite Site
e=>end

op1=>operation: Check 

sub1=>subroutine: Create Activation ID
sub2=>subroutine: Create User
sub3=>subroutine: Create Domain
sub4=>subroutine: Create Subscription
sub5=>subroutine: Assign Referal

cond=>condition: Yes or No?
cond2=>condition: User Exists?

io=>inputoutput: Save activation_id in plugin
io2=>inputoutput: Get User

st->op1->cond
cond(yes)->io->e
cond(no)->sub1->cond2
cond2(no)->sub2(right)->io2
cond2(yes)->io2->sub3->sub4->sub5

jyzhangchn avatar Dec 02 '16 11:12 jyzhangchn

That's because, your code like this:

<div id="div-to-draw"></div>

<script>
$('#div-to-draw').each(function(){
...

please don't each the #div-to-draw or event at #div-to-draw ...

evertext avatar Apr 04 '18 06:04 evertext