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
Support TypeScript 2.4+ #7578
Comments
This was intentional; note the description of the linked commit. |
@clydin this description?
I installed typescript 2.4 in my angular project that uses angular-cli and it still looked like it was using 2.3 because it reported an error that would only happen with 2.3 installed. As noted, when I ran |
That part is definitely not intentional and is most likely a package manager related. Try removing the lock file and node modules directory and re installing. My guess is the lock file has TS 2.3 associated with the CLI. |
Closing as answered by @clydin. You can use |
is there a way to do this in angular-cli as it is building the package? can I drop in "tsc --version" right before it builds and right when it fails? |
An |
@clydin ok cool, will give that a go. thanks! |
removing the lock file did not fix my issue. someone else was able to replicate the issue that caused me to report this: swimlane/ngx-datatable#927 (comment) What is interesting is that angular-cli had one version of typescript and seemed to ignore the version of typescript used by the project.
|
@omouse , CLI version 1.3 only supports up to TS 2.4. You'll need to use CLI 1.4 or higher to support TS 2.5. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
forgot to update the package.json for newly generated projects:
angular-cli/packages/@angular/cli/blueprints/ng/files/package.json
Line 50 in 128187e
somehow was missed in this commit: 7b9fc28
also there's a weirder issue related to this. I updated the package.json in my angular-cli generated project to 2.4.x for typescript and whenever I run
ng serve
andng build
it seems to always use 2.3.3, while when I run$(npm bin)/tsc
it is the correct version that matches what I put in the package.json.The text was updated successfully, but these errors were encountered: