This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-08
Channels
- # babashka (1)
- # babashka-sci-dev (27)
- # beginners (13)
- # cljdoc (1)
- # clojure (24)
- # clojure-austin (1)
- # clojurescript (76)
- # data-science (18)
- # datomic (7)
- # java (2)
- # malli (7)
- # nbb (7)
- # off-topic (34)
- # portal (1)
- # reagent (9)
- # reitit (4)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (11)
- # squint (7)
- # tools-build (7)
- # uncomplicate (1)
Hi. I'm using reagent with shadow-cljs and I'm seeing the following warning:
> Cannot infer target type in expression (. with-let11498 -generation)
when I try to use reagent's with-let
. I believe this was an https://github.com/reagent-project/reagent/issues/420 that was fixed in 0.9.0 but it seems to have come back. I'm using reagent version 1.1.1 and shadow-cljs version 2.20.17
I've made a minimum repro https://github.com/timmw/reagent-extern-warn/
Can anyone confirm if I'm doing something wrong or is this in fact a regression? Thanks!
Not sure whether it's regression, it might be that the CLJS compiler got more picky.
Either way, there's a missing ^js
tag in Reagent, it seems. Your usage looks OK, so I'd create a new issue.
Here's the issue in case anyone else runs into this https://github.com/reagent-project/reagent/issues/585
@U0ETR8LF2 Just got this one as well, did you solve it by adding ^js
somewhere, or did you downgrade some dependency?
Good to know. I wasn't able to get around it by changing my code, I might see if I can suppress the warning for now