Angular 8.0.0-rc.5 breaking change : Static Query
See original GitHub issueBug Report
What is the expected behavior?
App with flex-layout serves/builds.
What is the current behavior?
Errors similar to this one pop up upon serve/build:
ERROR in ./node_modules/@angular/flex-layout/esm2015/core.js 162:51-68
"export 'ΔdefineInjectable' was not found in '@angular/core'
See the related Changelog entry, and more info about Static Query Migration.
What are the steps to reproduce?
Update an existing app with 8.0.0-rc.5
for Angular & 8.0.0-beta.25
for Flex-Layout to see errors yourself.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/core": "~8.0.0-rc.5",
"@angular/flex-layout": "~8.0.0-beta.25",
Update : Though I thought error is related to static query change made in Angular, when I search Flex Layout source I can’t find a reference to ViewChild or ContentChild. So my assumption about source of error may not be correct.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Static query migration guide - Angular
In version 9, we plan to simplify the behavior so all queries resolve after change detection runs by default. The location of query...
Read more >Igor Minar on Twitter: "@OCombe @esosanderelias @angular We ...
released v 8.0.0-rc.5 Final touches breaking change ... figure out how to make the static query as non-invasive as possible while correcting a ......
Read more >Upgrade to Angular 14 - Techiediaries
@angular released v 8.0.0-rc.5 ... breaking change ... need to be aware of a breaking change related to static query migrations:.
Read more >AngularJS: Developer Guide: Migrating from Previous Versions
0 from 1.7.x should be a straightforward process and is highly recommended. AngularJS 1.8 is a breaking change release from 1.7 to mitigate...
Read more >Angular 8 : Final Version_Medium - MdEditor
The Breaking Change @ViewChild and @ContentChild queries, which will no ... Two of the fixed issues in Angular 8.0.0-rc.3 are in the router,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Flex Layout v8.0.0-beta.26 has been published to NPM and should resolve this issue.
The root cause of this is that a very specific syntax change internally was made in Angular v8.0.0-rc.5. Thus, any library built with v8.0.0-rc.4 will not work with RC 5. In our case, that means we need to wait for the next release of Angular Material before we bump our own version, likely later today or tomorrow.