Skip to content

AOT Compiler: StaticSymbols in summaries can't have members! #14266

@PFight

Description

@PFight

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

If we import module class, that was exported via export * as Test from '...', and then uses Test.TestModuel in imports statement, ngc produces error StaticSymbols in summaries can't have members!.

If we add middle way object in export, no error occured (see minimal example side way).

Is not dublicate of this!

Expected behavior

No error should occur when using correct es6 import/export syntax.

Minimal reproduction of the problem with instructions

https://github.com/PFight/ngc-static-symbols-members-bug

What is the motivation / use case for changing the behavior?

Using expression export * as BlaBla from '..' can solve problem of thousands of dots like import { BlaBla} from '../../../../../Test/TestModule'. Just make order of imports and exports of modules with special files. See my starter for example.

Please tell us about your environment:

Windows 8.1, npm 3.10.8

  • Angular version: 2.4.6
  • Angular-compiler-cli version: 2.4.6
  • Language: TypeScript 2.1.5

  • Node (for AoT issues): node --version =
    v6.9.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions