Skip to content

Dev server is not terminated in case of TypeScript version mismatch #18392

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

Closed
1 task done
AndrewKushnir opened this issue Jul 28, 2020 · 1 comment · Fixed by #19114
Closed
1 task done

Dev server is not terminated in case of TypeScript version mismatch #18392

AndrewKushnir opened this issue Jul 28, 2020 · 1 comment · Fixed by #19114
Labels
area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity1: confusing type: bug/fix
Milestone

Comments

@AndrewKushnir
Copy link

🐞 Bug report

Command

  • serve

Is this a regression?

No, I've seen it in older version of Angular CLI.

Description

After updating TypeScript version to the one that is not supported by Angular Compiler, there is an error that is being thrown in terminal after running ng serve, but the dev server is not terminated, thus leading to some confusion on whether the error is actually fatal or not. Trying to access the webpage (root/index one) results in a error as well (Cannot GET /).

🔬 Minimal Reproduction

  1. Create an app using ng new
  2. Change the version of the "typescript" package to the one outside of the supported range (like 4.0.0-beta) in package.json
  3. Run ng serve

🔥 Exception or Error


ERROR in The Angular Compiler requires TypeScript >=3.9.2 and <4.0.0 but 4.0.0-beta was found instead.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

🌍 Your Environment


Angular CLI: 9.1.8
Node: 13.3.0
OS: darwin x64

Angular: 10.0.5
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.4
@angular-devkit/build-angular     0.1000.4
@angular-devkit/build-optimizer   0.1000.4
@angular-devkit/build-webpack     0.1000.4
@angular-devkit/core              10.0.4
@angular-devkit/schematics        10.0.4
@angular/cli                      10.0.4
@ngtools/webpack                  10.0.4
@schematics/angular               10.0.4
@schematics/update                0.1000.4
rxjs                              6.5.5
typescript                        4.0.0-beta
webpack                           4.43.0
@alan-agius4 alan-agius4 added area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity1: confusing type: bug/fix labels Jul 29, 2020
@ngbot ngbot bot modified the milestone: Backlog Jul 29, 2020
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @ngtools/webpack freq1: low Only reported by a handful of users who observe it rarely severity1: confusing type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants