This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-11
Channels
- # announcements (3)
- # babashka (6)
- # babashka-sci-dev (37)
- # beginners (39)
- # calva (1)
- # clj-kondo (55)
- # clj-on-windows (1)
- # cljdoc (1)
- # clojure (30)
- # clojure-dev (3)
- # clojure-europe (8)
- # clojure-losangeles (1)
- # clojure-morsels (1)
- # clojurescript (26)
- # conjure (8)
- # graalvm (5)
- # helix (6)
- # hyperfiddle (12)
- # meander (6)
- # minecraft (1)
- # pathom (17)
- # polylith (1)
- # releases (2)
- # shadow-cljs (2)
- # sql (1)
- # squint (4)
I have a problem with a warning in no.en.core
since a update to the latest Clojurescript version. Apparently it implements parseInt and parseLong which seems to be a part of the core libraries now. I'm running into this because I am dependent on cljs-http.
Does anyone know of a patch or an alternative to cljs-http?
the dependency is within cljs-http. Even if I knew what to change in the code, I can not update the clojars. So I would have to keep a fork of the code.
if you just declare a direct dependency on no.en.core in your own dependencies that will override the dependency in cljs-http
aha, thanks!
works great! thanks 😃
I would like to use https://cljdoc.org/d/funcool/promesa/8.0.450/api/promesa.core#let but I suspect that I'm not requiring it the right way
(ns roaring.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs-http.client :as http]
[cljs.core.async :refer [<!]]
[clojure.string :as s]
[goog.crypt.base64 :as base64]
[promesa.core :as p]
[fire.admin :as f]))
it's a macro
like this
(defn request-roaring-token [api-key api-secret]
(p/let [response (token api-key api-secret)]
(:body response)))
the problem is that response is a unresolved symbol
how are you running this? just via REPL eval? in which case you might have not eval'd the ns
form?
maybe its just conjure that is messing with me
no i'm refactoring my file
but i have lots of errors in my code right now so this might be a symptom of other problems
I'll clean it up and see if it solves the problem
[:admin] Build failure:
The required JS dependency "worker_threads" is not available, it was required by "node_modules/write-file-atomic/index.js".
Dependency Trace:
percap/admin/core.cljs
roaring/core.cljs
fire/admin.cljs
node_modules/firebase-admin/lib/index.js
node_modules/firebase-admin/lib/default-namespace.js
node_modules/firebase-admin/lib/app/firebase-namespace.js
node_modules/firebase-admin/lib/storage/storage.js
node_modules/@google-cloud/storage/build/src/index.js
node_modules/@google-cloud/storage/build/src/bucket.js
node_modules/@google-cloud/storage/build/src/file.js
node_modules/@google-cloud/storage/build/src/gcs-resumable-upload.js
node_modules/configstore/index.js
node_modules/write-file-atomic/index.js
Searched for npm packages in:
/home/fredrik/src/percap-cljs/node_modules
See:
Does anyone know why this keeps happening? Sometimes it goes away and then it comes back again.
ignore it, I found out what was causing it
i have both backend and frontend targets in my shadow-cljs. the frontend target was requiring a namespace that were referencing the firebase-admin module. Which isn't supported in front end environments