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.

flex-layout doesn't compile with ngc when importing into an AoT app #176

@pdavin-zz

Description

@pdavin-zz

I think this is a bug, so filing as an issue. Started as the thread here (but no replies yet): https://groups.google.com/d/topic/angular-flex-layout/VM9b-pIkYOc/discussion

I'll try to work on putting together a demo project that demonstrates this (can't do a Plunkr since I don't know of an online code editor that supports running the ngc compiler).

Command failed: node_modules/.bin/ngc -p tsconfig-aot.json
can't resolve module ./api/layout from /.../src/client/node_modules/@angular/flex-layout/flexbox/_module.d.ts

Error: Cannot read property 'LayoutDirective' of undefined, 
resolving symbol FlexLayoutModule in /.../src/client/node_modules/@angular/flex-layout/flexbox/_module.d.ts, 
resolving symbol FlexLayoutModule in /.../src/client/node_modules/@angular/flex-layout/flexbox/_module.d.ts
at simplifyInContext (/.../third_party/content/src/client/node_modules/@angular/compiler-cli/src/static_reflector.js:475:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildhas prA PR has been created to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions