-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Description
When building rollup bundles with @improbable-eng/grpc-web
, a warning about "Missing exports" is thrown.
Errors seen
...
(!) Missing exports
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
node_modules/rules_typescript_proto/test/proto/pizza_service_pb_service.mjs
unary is not exported by node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js
31: callback = arguments[1];
32: }
33: var client = grpc.unary(PizzaService.OrderPizza, {
^
34: request: requestMessage,
35: host: this.serviceHost,
node_modules/rules_typescript_proto/test/proto/pizza_service_pb_service.mjs
Code is not exported by node_modules/@improbable-eng/grpc-web/dist/grpc-web-client.js
39: onEnd: function (response) {
40: if (callback) {
41: if (response.status !== grpc.Code.OK) {
^
42: var err = new Error(response.statusMessage);
43: err.code = response.status;
created bazel-out/darwin-fastbuild/bin/test/test_es6_bundling in 1s
Target //test:rollup_test up-to-date:
bazel-bin/test/rollup_test.sh
bazel-bin/test/rollup_test_loader.js
bazel-bin/test/rollup_test_require_patch.js
Minimal Reproduction
git clone https://github.com/Dig-Doug/rules_typescript_proto
git checkout e3a6de3
bazel build //test:rollup_test
Your Environment
What operating system are you using?
macOS 10.15.2
What version of bazel are you using?
Build label: 2.0.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 19 12:33:30 2019 (1576758810)
Build timestamp: 1576758810
Build timestamp as int: 1576758810
What version of the library are you using?
git commit e3a6de3
Any other comments?
I noticed that this warning is also present in the most recent CI run:
https://github.com/Dig-Doug/rules_typescript_proto/runs/396864580#step:5:50
I am also aware of improbable-eng/grpc-web#369, which has a slightly different warning about grpc
not being exported. Whereas the current issue
concerns grpc.unary
and grpc.Code
. So I am not sure if this is a regression or a new bug.