Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unparse fails in rhino repl with a null call error #63

Open
Kungi opened this issue Mar 17, 2016 · 1 comment
Open

unparse fails in rhino repl with a null call error #63

Kungi opened this issue Mar 17, 2016 · 1 comment

Comments

@Kungi
Copy link

Kungi commented Mar 17, 2016

I tried running the following code in rhino repl but it fails.

clj-demgen.main> (cemerick.piggieback/cljs-repl (cljs.repl.rhino/repl-env))
To quit, type: :cljs/quit
nil
cljs.user> (require '[cljs-time.core :as date])
nil
cljs.user> (require '[cljs-time.format :as date-format])j
nil
cljs.user> (date-format/unparse (date-format/formatters :basic-date-time)
                                 (date/today-at 12 00))
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "call" of null (rhino.clj#41)
@hlolli
Copy link

hlolli commented Apr 6, 2016

Got this error too. Im also using cljs-time but didn't see a connection to this error and that library until I saw you issue. All I did was try to boot figwheel and the following appeared:

user> (run)
WARNING: Use of undeclared Var user/run at line 1 <cljs repl>
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "call" of undefined (rhino.clj#41)

ahh nevermind, I was just using the wrong repl of the two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants