reagent

2023-01-08T21:25:19.935139Z

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-himik 2023-01-08T21:33:19.537459Z

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.

👍 1
2023-01-08T21:34:31.396539Z

Thanks, will do

2023-01-08T21:52:13.665759Z

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

👍 3
grav 2023-01-08T22:03:22.814179Z

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

grav 2023-01-08T22:06:35.654509Z

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

2023-01-08T22:08:19.988569Z

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-himik 2023-01-08T22:09:32.425629Z

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.

2023-01-08T22:14:06.395589Z

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