slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
459 stars 58 forks source link

got this error: TypeError: 'undefined' is not an object (evaluating 'cljs.core.require.call') #89

Closed pbaille closed 9 years ago

pbaille commented 10 years ago

it point to this line of my main.js cljs.core.require.call(null, new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null, "speclj.cli", "speclj.cli", 1748828644, null)], null));

any idea? I don't understand at all

vmonastyrov commented 10 years ago

I have the same issue

pbaille commented 10 years ago

I think it comes from the (run-specs) call, for me, just removing this call , remove the error... but I don't really understand.

mike-thompson-day8 commented 10 years ago

Yep, I got the same error. (In Clojurescript)

The problem is here. require might work in clj but it doesn't in cljs. (It gets turned into the non-existent cljs.core.require)

I removed any use of (run-specs) and found it still worked.

slagyr commented 9 years ago

I see. run-specs is a macro that's not expected in cljs specs. I've updated the macro to be benign when compiling cljs specs.