rules_nodejs icon indicating copy to clipboard operation
rules_nodejs copied to clipboard

Missing Angular architect rules

Open Serginho opened this issue 2 years ago • 0 comments

🐞 bug report

Affected Rule

The issue is caused by the rule: architect and architect_test

Is this a regression?

Not sure

Description

Installing package "@angular-devkit/build-angular": "~12.2.13", I've got an error loading architect rules using load("@npm//@angular-devkit/architect-cli:index.bzl", "architect", "architect_test")

I've been looking over the previous versions, even the version you use in the example, and no trace of where that index.bzl is. It seems never existed or it's an internal code. Any idea where is this?

Architect example is here but it seems never works.

https://github.com/bazelbuild/rules_nodejs/blob/5d1c2adfffff1f7525585ed970af98d5e0040af5/examples/angular_bazel_architect/package.json#L31

🔬 Minimal Reproduction

This project rules_nodejs/examples/angular_bazel_architect reproduces the problem.

🔥 Exception or Error

ERROR: Skipping '//projects/common:build': error loading package 'projects/common': Label '@npm//@angular-devkit/architect-cli:index.bzl' is invalid because '@angular-devkit/architect-cli' is not a package; perhaps you meant to put the colon here: '@npm//@angular-devkit:architect-cli/index.bzl'?
ERROR: error loading package 'projects/common': Label '@npm//@angular-devkit/architect-cli:index.bzl' is invalid because '@angular-devkit/architect-cli' is not a package; perhaps you meant to put the colon here: '@npm//@angular-devkit:architect-cli/index.bzl'?

🌍 Your Environment

It's not relevant.

Serginho avatar Apr 22 '22 10:04 Serginho