Closed AugustNagro closed 3 years ago
Using @com_google_jsinterop_annotations//:jsinterop-annotations
should work for a java_library target.
Naming convention wise; j2cl targets have -j2cl
suffix and non-j2cl targets (e.g. server) doesn't have suffix.
Huh, thanks, that works!
Hello,
I have three bazel packages: client, server, and shared.
The client is a j2cl_application, the server is a java_binary, and the shared project should be usable by both, as types are annotated with
@JSType
.I've tried a few approaches, and none seem to work.
However, However, it's missing the dependency for the JsType annotations. When I try any of these,
The build fails with something like:
Any suggestion would be appreciated.. happy holidays!