Skip to content

Package undefined not found error when updating to @angular/cli 6.0.0-rc.0 #10167

@benjamincombes

Description

@benjamincombes

Versions

Angular CLI: 6.0.0-rc.0
Node: 8.11.1
OS: darwin x64
Angular: 6.0.0-rc.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cdk: 5.2.4
@angular/cli: 6.0.0-rc.0
@angular/material: 5.2.4
@angular-devkit/architect: 0.5.0
@angular-devkit/core: 0.5.0
@angular-devkit/schematics: 0.5.0
@ngtools/json-schema: 1.1.0
@schematics/angular: 0.5.0
@schematics/update: 0.5.0
typescript: 2.7.2
webpack: error

Repro steps

  • Open an existing project
  • Update to angular 6.0.0-rc.0 and to @angular/cli 6.0.0-rc.0
  • Try to run the app, and get this error message :
An old project has been detected, which needs to be updated to Angular CLI 6.

Please run the following commands to update this project.

  ng update @angular/cli --migrate-only --from=1.7.1
  npm i
  • Run the required command

Observed behavior

The following error message is displayed:

Package undefined was not found in package.json.

Desired behavior

App should be updated succesfully.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions