This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-16
Channels
- # babashka (48)
- # beginners (72)
- # calva (65)
- # cider (10)
- # clerk (11)
- # clj-kondo (14)
- # clojure (85)
- # clojure-austin (11)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-uk (6)
- # core-matrix (1)
- # cursive (8)
- # datomic (20)
- # docker (38)
- # emacs (2)
- # events (1)
- # fulcro (6)
- # funcool (6)
- # hyperfiddle (79)
- # introduce-yourself (1)
- # lsp (131)
- # malli (32)
- # off-topic (11)
- # pathom (3)
- # re-frame (11)
- # reagent (15)
- # releases (2)
- # shadow-cljs (49)
- # sql (3)
- # tools-deps (36)
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>:1:23 Use of undeclared Var promesa.core/extract --------------------------------------------------------------------------------
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.
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>:1:23 Use of undeclared Var promesa.core/extract --------------------------------------------------------------------------------