You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 10, 2026. It is now read-only.
Build fails when using the protobuf.js library #45
.......................
ERROR: /Users/rohan/nodejstest/BUILD:3:1: no such package '@vc_server_deps//': Traceback (most recent call last):
File "/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/org_pubref_rules_node/node/internal/yarn_modules.bzl", line 66
execute(ctx, ([node, "internal/parse_yarn_...), ...)
File "/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/org_pubref_rules_node/node/internal/yarn_modules.bzl", line 4, in execute
fail((" ".join(cmds) + ("failed: \nST...))))
/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/node/bin/node internal/parse_yarn_lock.jsfailed:
STDOUT:
STDERR:
/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/vc_server_deps/internal/parse_yarn_lock.js:145
let referrer = dependency.referrer;
^
TypeError: Cannot read property 'referrer' of undefined
at Object.keys.forEach.name (/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/vc_server_deps/internal/parse_yarn_lock.js:145:34)
at Array.forEach (native)
at nodes.forEach (/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/vc_server_deps/internal/parse_yarn_lock.js:134:39)
at Array.forEach (native)
at breakCircularDependencies (/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/vc_server_deps/internal/parse_yarn_lock.js:124:9)
at main (/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/vc_server_deps/internal/parse_yarn_lock.js:46:3)
at Object.<anonymous> (/private/var/tmp/_bazel_rohan/704e4959b45a6871701648c93ca35942/external/vc_server_deps/internal/parse_yarn_lock.js:7:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
and referenced by '//:server-module'.
ERROR: Analysis of target '//:server-module' failed; build aborted: Loading failed.
INFO: Elapsed time: 11.235s
I've been finding (and fixing) similar issues in parallel on a branch which I've submitted as PR #48. This particular dependency.referrer issue was because @-scope modules aren't found during the walk of the installed node_modules tree.
My (rather crude) solution for this is in 79c8825.
Activity
pcj commentedon Oct 31, 2017
Looking into it. Looks like you are on darwin, yes? What bazel version?
rohanag12 commentedon Oct 31, 2017
I'm on darwin, bazel 0.7.0.
rohanag12 commentedon Oct 31, 2017
Can also confirm that it fails with the same error on ubuntu, with bazel 0.7.0.
pcj commentedon Oct 31, 2017
Hmm. I wasn't able to repro this. I added #46, let's see what travis thinks.
rohanag12 commentedon Oct 31, 2017
You got the wrong library in #46. The dependency should be
"protobufjs": "~6.8.0", not"protobuf.js". Please see the link in my original post.rohanag12 commentedon Nov 1, 2017
I created pull request #47 with a test example similar to #46, using the correct library. Let's see what Travis says about this.
Zetten commentedon Nov 1, 2017
I've been finding (and fixing) similar issues in parallel on a branch which I've submitted as PR #48. This particular
dependency.referrerissue was because @-scope modules aren't found during the walk of the installed node_modules tree.My (rather crude) solution for this is in 79c8825.
pcj commentedon Nov 1, 2017
@rohanag12 OK, thanks for clearing that up. I'll abandon #46 and we'll keep going with #47 and #48.