Open rendaw opened 3 years ago
@com_google_jsinterop_annotations is polluted with rules_closure that is bringing in an older version of the library and probably causing your issue.
@com_google_j2cl//:jsinterop-annotations-j2cl should work well for now. I will try to cleanup rules_closure at one point.
Okay, and thanks for clarifying!
I'm new to j2cl and Bazel FWIW.
I was missing the annotations dep and got this error:
Adding
@com_google_jsinterop_annotations-j2cl//java/jsinterop/annotations
didn't work:Searching brought me here -- I think this is the same library. The readme says to add
@com_google_jsinterop_annotations//:jsinterop-annotations-j2cl
to deps, but this produces the error:Eventually I found an example of the annotations in the guava j2cl sample, which uses
@com_google_j2cl//:jsinterop-annotations-j2cl
and this worked.I'm not sure if this is the recommended usage though.