Running in shadow-cljs I'm getting an error with promesa (10.0.594) `Use of undeclared Var promesa.core/extract`
Sorry for the really late reply! I'm using shadow-cljs. A small example demonstrating the problem would be to create a project: npx create-cljs-project promesa-test cd promesa-test npm install Replace the existing shadow-cljs.edn with just this: {:dependencies [[funcool/promesa "10.0.594"]]} and run: npx shadow-cljs browser-repl cljs.user=> (require '[promesa.core :as p]) nil cljs.user=> promesa.core ; See what is exported <<a bunch of stuff but not extract>> cljs.user=> (-> (p/resolved 111) (p/then #(println %))) 111 #<Promise[~]> cljs.user=> (-> (p/resolved 111) (p/extract)) ------ WARNING - :undeclared-var ----------------------------------------------- Resource: <eval>123 Use of undeclared Var promesa.core/extract --------------------------------------------------------------------------------
Maybe it is a problem with shadow-cljs?
strange, we are using it ourselves and didnt see this warning
are you using something concrete from promesa that caused this?
In the jar in ~/.m2/repository/funcool/promesa/10.0.594/core.cljs the function extract is wrapped in #? :clj. But that isn't what is on github.