Skip to content

AOT compilation does not include app code #13389

Closed

Description

@skendrot

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

When running the AOT compiler it compiles angular dependencies, but not app code. No errors are encountered

Expected behavior

The NgFactories should be created for the app code as well as the angular dependencies

Minimal reproduction of the problem with instructions

Clone or download the sample at https://github.com/skendrot/angular-quickstart. Run "node_modules/.bin/ngc" -p tsconfig-aot.json

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

App needs to be pre-compiled as well as angular dependencies

Please tell us about your environment:

Windows 10
node v:6.9.1
npm v:4.0.2

  • Angular version: 2.0.X

Angular 2.2.4

  • Browser: [NA]
  • Language: [all]

  • Node (for AoT issues): node --version = 6.9.1

Activity

  1. andyws commented on Dec 12, 2016

    @andyws

    Same/similar as #13344

  2. mattlewis92 commented on Dec 12, 2016

    @mattlewis92
    Contributor

    This threw me as well, it's caused by using typescript 2.1.x which is currently a WIP. Pin your typescript version to ~2.0.10 and it should work 😃

  3. skendrot commented on Dec 13, 2016

    @skendrot
    Author

    That fixed it. Thanks!

  4. code-tree commented on Dec 13, 2016

    @code-tree
    Contributor

    @mattlewis92 Thank you!!

  5. angular-automatic-lock-bot commented on Sep 10, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtime

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions