binaryage / cljs-oops

ClojureScript macros for convenient native Javascript object access.
Other
351 stars 13 forks source link

Runtime error - Resource: oops/core.cljs:42:3 - Use of undeclared Var cljs.core/js-fn? #28

Closed Cukac closed 3 years ago

Cukac commented 3 years ago
 Resource: oops/core.cljs:42:3
--------------------------------------------------------------------------------
  39 |   (runtime/validate-object-access-dynamically obj mode key push? check-key-read? check-key-write?))
  40 |
  41 | (defn ^boolean validate-fn-call-dynamically [fn mode]
  42 |   (runtime/validate-fn-call-dynamically fn mode))
---------^----------------------------------------------------------------------
 Use of undeclared Var cljs.core/js-fn?
--------------------------------------------------------------------------------
  43 |
  44 | (defn ^:dynamic punch-key-dynamically! [obj key]
  45 |   (runtime/punch-key-dynamically obj key))
  46 |
--------------------------------------------------------------------------------

Only solution is to go back to version 0.7.0.

Cukac commented 3 years ago

Closing this issue because I was using old version of Clojure.

daveyarwood commented 1 year ago

I ran into this myself and fixed it by upgrading to the latest shadow-cljs (I was on 2.11.23, upgraded to 2.20.12), which has the effect of updating to a newer version of ClojureScript.