-
Notifications
You must be signed in to change notification settings - Fork 12k
Warning message is displayed when using TypeScript 2.9.2 #11665
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
Comments
Related: angular/angular#25141 |
As I recall from the last time there was such an upgrade, for various legacy reasons the compatibility version check is implemented in CLI, with the code of that understands the version relationship compiled into CLI (or dev kit). So they will need to be a CLI update to understand that a new range of Angular versions is compatible with the new range of TypeScript versions. So we are just a bit patient, likely the next new CLI version should understand the new versions, and contain any other needed tweaks to make it all run smoothly. |
Is the referenced fix complete? Creating a new project in the CLI, why is the default typescript version set to "~2.7.2" in package.json? Shouldn't it be set to 2.9 by default now or is 2.7 the default for some specific reason? Tried using latest 6.1.1 update -- same result. |
@sundarchi1 Yes, it does fix the issue when you already upgraded to TypeScript 2.9. The issue you've just raised is a separated issue in which Angular CLI generates TypeScript 2.7 as default. As for that issue, #11669 is pending. |
@sundarchi1 I tested on my local. the fix is complete. when change version to 2.9.2, no warning display. |
Although this is probably not a big problem, I see that @schematics/[email protected] still has a dependency on typescript < 2.8. It installs a separate copy of typescript, so it is compatible with global typescript in version 2.9. |
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. |
Angular version 6.1.0 support typescript 2.9. But when I change typescript dependency in
package.json
. This warning is shown.Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
ng new testNg61
package.json
to 2.9.2npm i
ng serve
The log given by the failure
Desired functionality
Serve correctly without showing the warning
Mention any other details that might be useful
versionCombos
variable innode_modules/@angular/cli/upgrade/version.js
seem not being built correctly. The codes inupgrade/version.ts
file seem correct.The text was updated successfully, but these errors were encountered: