Angular-cli: Can't build project wit typescript 2.1.4

Created on 7 Dec 2016  路  9Comments  路  Source: angular/angular-cli

VERSIONS?

angular-cli: 1.0.0-beta.22-1
node: 7.2.0
os: linux x64

Repro steps.

Create new project, update typescript to 2.1.4

The log given by the failure.

 10% building modules 2/2 modules 0 active(node:6139) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: AppModule is not an NgModule
(node:6139) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Most helpful comment

To use typescript 2.1

  • include "awesome-typescript-loader": "^3.0.0-beta.9" in package.json
  • rollback angular-cli version to "1.0.0-beta.21"
  • update tsconfig.json with
    "typingOptions": { "enableAutoDiscovery": false, "include": [], "exclude": [] }

Enjoy async/await

All 9 comments

Similar here.
Version:

"angular-cli": "1.0.0-beta.22-1",
"typescript": "2.1.4",

stuck at this place:

* NG Live Development Server is running on http://localhost:4200. *
20% building modules 84/84 modules 0 active

We don't support 2.1 officially, unfortunately.

@Hongbo-Miao that's a problem with webpack dev server, and unrelated to this issue. It blocks because it's reporting an error. Try ng build.

@hansl in the pipeline? Any ETA? Can't wait for some async/await

Once Angular itself support TypeScript 2.1

@hansl thanks!

I'm already using typescript v2.1 with angular-cli but the latest beta-22 is broken for me, beta-21 works fine. Async and await made my code much more readable.

TS 2.0.10 stuck at 20%

To use typescript 2.1

  • include "awesome-typescript-loader": "^3.0.0-beta.9" in package.json
  • rollback angular-cli version to "1.0.0-beta.21"
  • update tsconfig.json with
    "typingOptions": { "enableAutoDiscovery": false, "include": [], "exclude": [] }

Enjoy async/await

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericel picture ericel  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

rwillmer picture rwillmer  路  3Comments