1

I'm using the angular-cli with version 1.2.7, by default, it create new angular apps with typescript 2.3, but now I want to use some feature of typescript 2.4.

I tried to update the typescript in package.json, remove all node_modules, and npm install again, but this seems not work.

How can I config my project, so that angular-cli can use typescript 2.4 instead?

3
  • Remove your globally installed typescript Commented Aug 7, 2017 at 7:43
  • You should probably remove the package-lock.json file, and try to install again Commented Aug 7, 2017 at 7:47
  • Just FYI, Typescript 2.4 support was added out of the box from angular-cli 1.3.0-rc.0: release notes Commented Aug 7, 2017 at 10:56

1 Answer 1

1

If you want to use typescript 2.4 you have to use the 1.3.0 RC version of cli as support just being added to that. However bare in mind that angular still does not support typescript 2.4 yet, but it is coming, you can track this issue for that matter which is not stopping you to play with typescript 2.4 and cli anyway

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.