Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting with typescript 2.1.0-dev.20160907, Angular Template Compiler (ngc) does not produce a compiled app dir #2600

Closed
kesarion opened this issue Oct 9, 2016 · 2 comments

Comments

@kesarion
Copy link

kesarion commented Oct 9, 2016

ngc won't produce a compiled app dir anymore, all I get is '/compiled/node_modules/@angular/', no '/compiled/app/'. Everything works fine before typescript 2.1.0-dev.20160907.

OS?

MacOS Sierra

Versions.

@angular/compiler-cli@0.6.4
typescript@2.1.0-dev.20160907 (or later)

Repro steps.

In '/project_root/app/' add Quickstart files:

  • app.component.ts
  • app.module.ts

Plus AOT style main.ts:

import { platformBrowser } from '@angular/platform-browser';
import { AppModuleNgFactory } from '../compiled/app/app.module.ngfactory';

platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);

tsconfig.aot.json:

{
  "compilerOptions": {
    "target": "es5",
    "module": "es2015",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "noEmitHelpers": true,
    "skipDefaultLibCheck": true,
    "strictNullChecks": false,
    "outDir": "tmp"
  },
  "exclude": [
    "node_modules",
    "compiled",
    "app/main.ts"
  ],
  "angularCompilerOptions": {
    "genDir": "compiled",
    "skipMetadataEmit" : true
  }
}

package.json as in quickstart otherwise.

ngc -p tsconfig.aot.json

The log given by the failure.

Normally this include a stack trace and some more information.

No errors, it's 'successful', but no compiled app.

Mention any other details that might be useful.

typescript 2.1.0-dev.20160907 adds async/await support for es5 target in tsconfig.

@filipesilva
Copy link
Contributor

https://angular.io/docs/ts/latest/quickstart.html#!#config-files refers to the https://github.com/angular/quickstart repo, that is where you should open your issue.

The CLI supports AoT via ng build --aot and ng serve --aot, but it's still experimental.

@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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants