Fork me on GitHub
#reagent
<
2023-01-08
>
timmw21:01:19

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!

p-himik21:01:19

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.

👍 2
timmw21:01:31

Thanks, will do

timmw21:01:13

Here's the issue in case anyone else runs into this https://github.com/reagent-project/reagent/issues/585

👍 6
grav22:01:22

@U0ETR8LF2 Just got this one as well, did you solve it by adding ^js somewhere, or did you downgrade some dependency?

grav22:01:35

FWIW the issue went away when I downgraded to 2.20.14 of Shadow-CLJS

timmw22:01:19

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

p-himik22:01:32

If you just suppress it without fixing it, your production code might potentially be broken. No idea how large of a potential it is with this particular instance, but should be easy enough to check.

timmw22:01:06

Oo thanks for heads up. I've just tested and it does still seem to work