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.

withConfig requires breakpoints with AOT

See original GitHub issue

Bug Report

What is the expected behavior?

FlexLayoutModule.withConfig({useColumnBasisZero: false}) as suggested here to work with AOT compile

What is the current behavior?

produces

Cannot read property ‘alias’ of undefined

What are the steps to reproduce?

https://github.com/gatimus/flex-layout-demo npm i ng serve

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular CLI: 6.2.3
Node: 8.12.0
OS: win32 x64
Angular: 6.1.8
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.3
@angular-devkit/build-angular     0.8.3
@angular-devkit/build-optimizer   0.8.3
@angular-devkit/build-webpack     0.8.3
@angular-devkit/core              0.8.3
@angular-devkit/schematics        0.8.3
@angular/cdk                      6.4.7
@angular/cli                      6.2.3
@angular/flex-layout              6.0.0-beta.17
@ngtools/webpack                  6.2.3
@schematics/angular               0.8.3
@schematics/update                0.8.3
rxjs                              6.2.2
typescript                        2.9.2
webpack                           4.20.2

Is there anything else we should know?

FlexLayoutModule.withConfig({ useColumnBasisZero: false }, DEFAULT_BREAKPOINTS) works

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CaerusKarucommented, Oct 4, 2018

I’ve explained the root cause in #853, and the fix will be added there, hopefully before we release our 7.0.0-beta

1reaction
william-lohancommented, Sep 26, 2018

image @CaerusKaru what else can I do to help reproduce this ^

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flex Layout styles are getting added automatically when AOT ...
When I turned off AOT compiler the styles are not added. Also tried to set flex layout config FlexLayoutModule.withConfig({addFlexToParent: ...
Read more >
angular/flex-layout - Gitter
My guess is that flex-layout-11 is present 11 times because you're using responsive breakpoints. Which means the class itself is recreated in different...
Read more >
Allow themes to identify their breakpoints to Drupal [#1775774]
Spin-off from [#1734642]. That issue is working on a UI for configuring breakpoints. This issue is just the ability for themes to identify ......
Read more >
WebStorm node.js debugging not working
I wrote a lot this code yesterday. I added break points at that point. Eventually got it to work by debugging with print...
Read more >
VarNote Documentation
VarNote Usage Documentation Quick Tutorial System Requirements Installation and ... Annotation AnnotationIntersectFile Run with config file IntersectConfig ...
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