Skip to content

@angular/[email protected] ng new command installing Angular 14.0.0-next.0 packages #23804

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

Closed
1 of 15 tasks
MitchellCash opened this issue Aug 26, 2022 · 3 comments
Closed
1 of 15 tasks
Assignees
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity1: confusing type: bug/fix

Comments

@MitchellCash
Copy link

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, this issue was not present in Angular 14.1.3.

Description

With Angular @angular/[email protected] when running ng new [name] it will install Angular 14.0.0-next.0 packages. See below:

  "dependencies": {
    "@angular/animations": "^14.0.0-next.0",
    "@angular/common": "^14.0.0-next.0",
    "@angular/compiler": "^14.0.0-next.0",
    "@angular/core": "^14.0.0-next.0",
    "@angular/forms": "^14.0.0-next.0",
    "@angular/platform-browser": "^14.0.0-next.0",
    "@angular/platform-browser-dynamic": "^14.0.0-next.0",
    "@angular/router": "^14.0.0-next.0",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^14.2.0",
    "@angular/cli": "~14.2.0",
    "@angular/compiler-cli": "^14.0.0-next.0",
    "@types/jasmine": "~4.0.0",
    "jasmine-core": "~4.3.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "typescript": "~4.7.2"
  }

🔬 Minimal Reproduction

  1. Install @angular/[email protected]
  2. Run ng new example
  3. Take note of the package.json package versions

🔥 Exception or Error

N/A

🌍 Your Environment

Angular CLI: 14.2.0
Node: 16.17.0
Package Manager: npm 8.15.0 
OS: darwin x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.0
@angular-devkit/build-angular   14.2.0
@angular-devkit/core            14.2.0
@angular-devkit/schematics      14.2.0
@schematics/angular             14.2.0
rxjs                            7.5.6
typescript                      4.7.4

Anything else relevant?

N/A

@MitchellCash
Copy link
Author

I should note that because we are using a caret version range (i.e. ^14.0.0-next.0), that we do end up installing 14.2.0 regardless. However, as per previous versions of @angular/cli, the minimum version of ^14.2.0 should be used to avoid accidental incompatibilities.

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Aug 26, 2022
14.2 is the minimum versions that is needed to support workspaces with TypeScript 4.8

Closes angular#23804
@alan-agius4 alan-agius4 added type: bug/fix freq1: low Only reported by a handful of users who observe it rarely severity1: confusing area: @schematics/angular labels Aug 26, 2022
@alan-agius4 alan-agius4 self-assigned this Aug 26, 2022
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Aug 26, 2022
14.2 is the minimum versions that is needed to support workspaces with TypeScript 4.8

Closes angular#23804
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Aug 26, 2022
14.2 is the minimum versions that is needed to support workspaces with TypeScript 4.8

Closes angular#23804
@dgp1130
Copy link
Collaborator

dgp1130 commented Aug 26, 2022

Just pushed out a fix in 14.2.1. Make sure your CLI is up to date, and it should generate projects with stable versions.

@dgp1130 dgp1130 closed this as completed Aug 26, 2022
clydin pushed a commit that referenced this issue Aug 29, 2022
14.2 is the minimum versions that is needed to support workspaces with TypeScript 4.8

Closes #23804
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @schematics/angular freq1: low Only reported by a handful of users who observe it rarely severity1: confusing type: bug/fix
Projects
None yet
Development

No branches or pull requests

3 participants