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

withConfig requires breakpoints with AOT #846

@mina-skunk

Description

@mina-skunk

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

Metadata

Metadata

Assignees

Labels

P1Urgent issue that should be resolved before the next re-leasebug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions