Skip to content

RealWorld Angular App w/ ng update fails to update @angular-devkit/core 8.0 #14489

@StephenFluin

Description

@StephenFluin

🐞 Bug report

Command (mark with an x)

- [x] build
- [x] serve

Is this a regression?

Yes

Description

It looks like an ng-update fails to update @angular-devkit/core in this project, resulting in build/serve errors after the upate.

Build fails with the error this._architect.scheduleTarget is not a function.

🔬 Minimal Reproduction

git clone git@github.com:gothinkster/angular-realworld-example-app.git
cd angular-realworld-example-app
ng  update @angular/core @angular/cli --next
ng build

🔥 Exception or Error



```
$ ng build
this._architect.scheduleTarget is not a function
TypeError: this._architect.scheduleTarget is not a function
    at BuildCommand.runSingleTarget (/usr/local/google/home/stephenfluin/workspace/test/angular-realworld-example-app/node_modules/@angular/cli/models/architect-command.js:193:47)
    at async BuildCommand.runArchitectTarget (/usr/local/google/home/stephenfluin/workspace/test/angular-realworld-example-app/node_modules/@angular/cli/models/architect-command.js:216:24)
    at async BuildCommand.validateAndRun (/usr/local/google/home/stephenfluin/workspace/test/angular-realworld-example-app/node_modules/@angular/cli/models/command.js:137:28)
    at async Object.runCommand (/usr/local/google/home/stephenfluin/workspace/test/angular-realworld-example-app/node_modules/@angular/cli/models/command-runner.js:178:24)
    at async default_1 (/usr/local/google/home/stephenfluin/workspace/test/angular-realworld-example-app/node_modules/@angular/cli/lib/cli/index.js:32:31)
```

🌍 Your Environment


Angular CLI: 8.0.0-rc.4
Node: 12.2.0
OS: linux x64
Angular: 8.0.0-rc.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.0-rc.4
@angular-devkit/build-angular     0.800.0-rc.4
@angular-devkit/build-optimizer   0.800.0-rc.4
@angular-devkit/build-webpack     0.800.0-rc.4
@angular-devkit/core              0.6.8
@angular-devkit/schematics        8.0.0-rc.4
@ngtools/webpack                  8.0.0-rc.4
@schematics/angular               8.0.0-rc.4
@schematics/update                0.800.0-rc.4
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.30.0

Workaround

Manually updating @angular-devkit/core fixes this problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions