Fork me on GitHub
#core-async
<
2017-02-12
>
hlolli21:02:09

with clojurescript "1.9.456"/core.async 0.2.395 on node.js repl, Im unable to create channel.

core> (require '[clojure.core.async :as async])
nil
core> (async/chan)
ExceptionInfo TypeError: Cannot read property 'chan' of undefined
    at repl:1:84
    at repl:9:3
    at ContextifyScript.Script.runInThisContext (vm.js:25:33)
    at Object.exports.runInThisContext (vm.js:77:17)
    at Domain.<anonymous> ([stdin]:50:34)
    at Domain.run (domain.js:221:14)
    at Socket.<anonymous> ([stdin]:49:25)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)  clojure.core/ex-info (core.clj:4617)
some pitfall Im falling into?

dergutemoritz22:02:40

@hlolli Try with cljs.core.async instead of clojure.core.async

hlolli22:02:48

@dergutemoritz yes I really did forget that. And was sure it would work now. Strangely this didnt fix this error.

dergutemoritz22:02:21

Hm very odd. I would have expected an error immediately upon calling require anyway. Maybe try asking in #clojurescript