Closed
Description
🐞 Bug report
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
No
Description
When trying to update to angular 8 I get a cryptic error message thrown when running the static query migration:
ng update @angular/cli @angular/core codelyzer --next --force --verbose
...
------ Static Query migration ------
In preparation for Ivy, developers can now explicitly specify the
timing of their queries. Read more about this here:
https://github.com/angular/angular/pull/28810
There are two available migration strategies that can be selected:
• Template strategy - migration tool (short-term gains, rare corrections)
• Usage strategy - best practices (long-term gains, manual corrections)
For an easy migration, the template strategy is recommended. The usage
strategy can be used for best practices and a code base that will be more
flexible to changes going forward.
? What migration strategy do you want to use? Template strategy
Cannot read property 'some' of undefined
Even using the verbose flag I can't seem to get a stacktrace to track down where the error is coming from, is there way of getting that so I can track down the issue and provide a minimal repro?
🔬 Minimal Reproduction
ng update @angular/cli @angular/core codelyzer --next --force --verbose
I get that this isn't enough to reproduce the issue your end, but if you can point me to how I can get a stack trace back out then I can narrow it down further to give a repro. Thanks!
🔥 Exception or Error
Cannot read property 'some' of undefined
🌍 Your Environment
Angular CLI: 8.0.0-rc.1
Node: 11.13.0
OS: darwin x64
Angular: 8.0.0-rc.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.0-rc.1
@angular-devkit/build-angular 0.800.0-rc.1
@angular-devkit/build-optimizer 0.800.0-rc.1
@angular-devkit/build-webpack 0.800.0-rc.1
@angular-devkit/core 8.0.0-rc.1
@angular-devkit/schematics 8.0.0-rc.1
@angular/cdk 8.0.0-beta.0
@ngtools/webpack 8.0.0-rc.1
@schematics/angular 8.0.0-rc.1
@schematics/update 0.800.0-rc.1
rxjs 6.5.1
typescript 3.4.5
webpack 4.30.0
Anything else relevant?