angular-cli: 1.0.0-beta.22-1
node: 7.2.0
os: linux x64
Create new project, update typescript to 2.1.4
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.
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
"^3.0.0-beta.9" in package.json"1.0.0-beta.21" "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._
Most helpful comment
To use typescript 2.1
"^3.0.0-beta.9"in package.json"1.0.0-beta.21""typingOptions": { "enableAutoDiscovery": false, "include": [], "exclude": [] }Enjoy
async/await