This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-23
Channels
- # announcements (2)
- # babashka (25)
- # beginners (33)
- # biff (13)
- # calva (13)
- # clerk (82)
- # clj-commons (3)
- # clj-kondo (8)
- # clj-on-windows (23)
- # cljdoc (6)
- # clojure (16)
- # clojure-belgium (1)
- # clojure-dev (58)
- # clojure-europe (53)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (2)
- # clojurescript (17)
- # core-async (5)
- # cursive (6)
- # datahike (1)
- # datomic (8)
- # emacs (25)
- # etaoin (21)
- # events (4)
- # graalvm (33)
- # honeysql (7)
- # hyperfiddle (1)
- # lsp (49)
- # luminus (4)
- # malli (18)
- # off-topic (63)
- # reagent (11)
- # releases (1)
- # shadow-cljs (200)
- # timbre (1)
- # tools-build (17)
is there a way to remove these warnings, without removing the unresolved
symbole rule?
And/or: can you provide this code, with minimal but complete context in a .cljs
or .cljc
file? Then I would be able to say moe
cljs file
(ns app.magic
(:require
[re-frame.core :as rf]
[promesa.core :as p]
[clojure.string :as str]
[app.utils :refer [j->c]]
[app.config :refer [env]]
[app.matrix :as matrix]
["ethers" :refer [ethers]]
["magic-sdk" :refer [Magic]]
["@magic-ext/webauthn" :refer [WebAuthnExtension]]))
(defonce magic (new Magic (:magic-key env)
(clj->js {:extensions [(new WebAuthnExtension)]})))
(defonce magic-provider (new (.. ethers -providers -Web3Provider) (.-rpcProvider magic)))
this file: https://github.com/teawaterwire/web4th/blob/master/src/app/magic.cljs
ok, I see the issue. this is a workaround:
(defonce magic-provider (let [provider (.. ethers -providers -Web3Provider)]
(new provider (.-rpcProvider magic))))
great thanks will create an issue 👍