Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

withConfig requires breakpoints with AOT #846

Closed
mina-skunk opened this issue Sep 26, 2018 · 7 comments
Closed

withConfig requires breakpoints with AOT #846

mina-skunk opened this issue Sep 26, 2018 · 7 comments
Assignees
Labels
bug P1 Urgent issue that should be resolved before the next re-lease

Comments

@mina-skunk
Copy link

mina-skunk commented Sep 26, 2018

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

@CaerusKaru
Copy link
Member

Please provide a minimal reproduction. This does not come up in our testing, which uses AOT.

@mina-skunk
Copy link
Author

@CaerusKaru added demo

@CaerusKaru
Copy link
Member

I had no issue running both ng build --prod and ng serve

@mina-skunk
Copy link
Author

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

@CaerusKaru
Copy link
Member

I see what you're seeing now. Let me dive into this and see if there's an easy fix.

@CaerusKaru
Copy link
Member

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

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug P1 Urgent issue that should be resolved before the next re-lease
Projects
None yet
Development

No branches or pull requests

2 participants