Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng new missing @angular-devkit #29494

Closed
1 task done
sysmat opened this issue Jan 27, 2025 · 0 comments · Fixed by #29500
Closed
1 task done

ng new missing @angular-devkit #29494

sysmat opened this issue Jan 27, 2025 · 0 comments · Fixed by #29500
Assignees
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix

Comments

@sysmat
Copy link

sysmat commented Jan 27, 2025

Command

new

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

ng new my-workspace --no-create-application
cd my-workspace
ng generate library my-lib
  • angular.json
"test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "tsConfig": "projects/my-lib/tsconfig.spec.json",
            "polyfills": [
              "zone.js",
              "zone.js/testing"
            ],
            "karmaConfig": "projects/my-lib/karma.conf.js"
          }
        }
  • run test npm run test error
Error: Could not find the '@angular-devkit/build-angular:karma' builder's node package.

Minimal Reproduction

Exception or Error

Error: Could not find the '@angular-devkit/build-angular:karma' builder's node package.

Your Environment

Angular: 19.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1901.4
@angular-devkit/core         19.1.4
@angular-devkit/schematics   19.1.4
@angular/build               19.1.4
@angular/cli                 19.1.4
@schematics/angular          19.1.4
ng-packagr                   19.1.1
rxjs                         7.8.1
typescript                   5.7.3
zone.js                      0.15.0

Anything else relevant?

No response

@alan-agius4 alan-agius4 added type: bug/fix freq1: low Only reported by a handful of users who observe it rarely severity5: regression area: @schematics/angular labels Jan 27, 2025
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 28, 2025
…evkit/build-angular:ng-packagr`

The library schematic currently relies on Karma, which requires `@angular-devkit/build-angular` to be installed. To address this, we now use the `ng-packagr` builder provided in this package.

Closes angular#29494
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 28, 2025
…evkit/build-angular:ng-packagr`

The library schematic currently relies on Karma, which requires `@angular-devkit/build-angular` to be installed. To address this, we now use the `ng-packagr` builder provided in this package.

Closes angular#29494
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 28, 2025
…evkit/build-angular:ng-packagr`

The library schematic currently relies on Karma, which requires `@angular-devkit/build-angular` to be installed. To address this, we now use the `ng-packagr` builder provided in this package.

Closes angular#29494
@alan-agius4 alan-agius4 self-assigned this Jan 28, 2025
alan-agius4 added a commit that referenced this issue Jan 29, 2025
…evkit/build-angular:ng-packagr`

The library schematic currently relies on Karma, which requires `@angular-devkit/build-angular` to be installed. To address this, we now use the `ng-packagr` builder provided in this package.

Closes #29494

(cherry picked from commit cae068b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Projects
None yet
2 participants