Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interop in CLJS constructor position is throwing a "unresolved symbol" error #2024

Closed
teawaterwire opened this issue Mar 23, 2023 · 0 comments
Projects

Comments

@teawaterwire
Copy link

version

latest version of Calva

platform

macOS

editor

vscode

problem

this line is giving the error:
https://github.com/teawaterwire/web4th/blob/master/src/app/magic.cljs#L16

image

expected behavior

as mentioned by @borkdude on Slack, this is an issue and the current workaround is:

(defonce magic-provider (let [provider (.. ethers -providers -Web3Provider)]
                          (new provider (.-rpcProvider magic))))
@borkdude borkdude changed the title Double dot special form is throwing a "unresolved symbol" error Interop in constructor position is throwing a "unresolved symbol" error Mar 23, 2023
@borkdude borkdude changed the title Interop in constructor position is throwing a "unresolved symbol" error Interop in CLJS constructor position is throwing a "unresolved symbol" error Mar 23, 2023
@borkdude borkdude added this to Needs triage in clj-kondo via automation Mar 23, 2023
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo Mar 23, 2023
@borkdude borkdude moved this from High priority (next release) to In progress in clj-kondo Apr 4, 2023
clj-kondo automation moved this from In progress to Done Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
clj-kondo
  
Done
Development

No branches or pull requests

1 participant