I'm currently trying to redefine the todo example application to understand how it works, and I get an error when loading the page, I am not sure how to go from here. My concern is that the error is in cljs.core .
todo-app.simulated.services.receive_messages = (function receive_messages(app){ return io.pedestal.app.protocols.put_message.call(null,(new cljs.core.Keyword("\uFDD0:input")).call(null,app),cljs.core.PersistentArrayMap.fromArray([io.pedestal.app.messages.type,"\uFDD0:create-todo",io.pedestal.app.messages.topic,cljs.core.PersistentVector.fromArray(["\uFDD0:todo"], true)], true)); });
Exception Message:
Uncaught TypeError: Object function (meta,cnt,arr,__hash){ this.meta = meta; this.cnt = cnt; this.arr = arr; this.__hash = __hash; this.cljs$lang$protocol_mask$partition1$ = 4; this.cljs$lang$protocol_mask$partition0$ = 16123663; } has no method 'fromArray'
And my dependencies:
[[org.clojure/clojure "1.5.1"] [org.clojure/clojurescript "0.0-1820"] [domina "1.0.1"] [ch.qos.logback/logback-classic "1.0.7" :exclusions [org.slf4j/slf4j-api]] [io.pedestal/pedestal.app "0.1.9"] [io.pedestal/pedestal.app-tools "0.1.9"]]
Any help or understanding will be appreciated!
source share