question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 8.0.0-rc.5 breaking change : Static Query

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
CaerusKarucommented, May 24, 2019

Flex Layout v8.0.0-beta.26 has been published to NPM and should resolve this issue.

2reactions
CaerusKarucommented, May 24, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found