kue icon indicating copy to clipboard operation
kue copied to clipboard

cluster example is broken

Open jmarca opened this issue 12 years ago • 7 comments

cutting and pasting cluster example fails with:

  cluster = cluster()
       ^
  TypeError: object is not a function

Perhaps the cluster api changed?

jmarca avatar Mar 04 '14 20:03 jmarca

Yes, it has changed, please see cluster examples, you may omit that line and make it work. will update example later.

behrad avatar Mar 04 '14 21:03 behrad

Thanks, I just read the docs on cluster and hacked it to life.

Also wanted to note that I got it working with cluster from node core, not with the LearnBoost/cluster project (which is linked from the prior sentence in the readme)

jmarca avatar Mar 04 '14 21:03 jmarca

Sure, I'll put it up soon. Gotta run an errand now

On Fri, Mar 07, 2014 at 02:51:07PM -0800, Roman Getman wrote:

@jmarca can you please share the code that made it work? Also having the same issue.


Reply to this email directly or view it on GitHub: https://github.com/LearnBoost/kue/issues/301#issuecomment-37076702

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

jmarca avatar Mar 08 '14 00:03 jmarca

My working example is in its own repo: https://github.com/jmarca/kue_example. You can clone the repo and run it (npm install to get kue, then follow the readme)

jmarca avatar Mar 08 '14 01:03 jmarca

Sorry for causing the confusion, I managed to figure it out before you responded, thanks a lot though, I'll dig into your example a bit more because my code is a little different, still works though.

romangetman avatar Mar 08 '14 09:03 romangetman

same here cant work, i hope this new example newbies like me. so far the new example work.

adamramadhan avatar Mar 21 '14 14:03 adamramadhan

fixed: https://github.com/LearnBoost/kue/commit/184505232a4f88eb02fc517e7e2edf99f8fa586c

behrad avatar Mar 21 '14 16:03 behrad