ERROR: Failed to load Starlark extension '@npm//@bazel/labs:package.bzl'.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
- @npm
- @nodejs_darwin_arm64
When I try to run a build I get this error:
It seems that after Bazel 5 that package is not available, see https://github.com/bazelbuild/rules_nodejs/issues/3262#issuecomment-1016370486.
I added the extension as local dependency and updated the WORKSPACE file.