Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
19.2.7
Description
Today I upgraded my existing Angular 19.x project to the most recent (in this moment) 20.0.4 (CLI). I used to start-up my frontend via the following CLI command:
ng serve --ssl true --ssl-cert ssl/server.crt --ssl-key ssl/server.key
In previous version: 19.2.7 of the CLI, it starts up without errors. After I upgraded to Angular CLI 20.0.4, when I run the above command, I get the following error at the end of the CLI's log:
Watchpack Error (initial scan): Error: EINVAL: invalid argument, lstat 'D:\System Volume Information'
My package.json:
package.json
My angular.json:
angular.json
My tsconfig.json:
Minimal Reproduction
Minimal Reproduction Path
- Open a Windows 10 (22H2) Elevated Command Prompt inside the project root folder.
- Run the command:
ng serve --ssl true --ssl-cert ssl/server.crt --ssl-key ssl/server.key
Expected Result:
The Application start up without any error(s)
Actual Result
The CLI's log contains at the end the following error:
Watchpack Error (initial scan): Error: EINVAL: invalid argument, lstat 'D:\System Volume Information'
Notes
My Operating System is: Windows 10 (22H2)
The serve command is run from within an Elevated Command Prompt (with Admin rights).
I am not a "Full Admin" on my Dev station.
I cannot even access the above-mentioned folder even from Windows Explorer (Access Denied).
In Previous Angular (CLI version 19.2.7) the error Does not appear.
Exception or Error
Watchpack Error (initial scan): Error: EINVAL: invalid argument, lstat 'D:\System Volume Information'
Your Environment
D:\projects\zh-converter\claim-file-converter\claim-file-converter-gui>ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 20.0.4
Node: 22.17.0
Package Manager: yarn 1.22.22
OS: win32 x64
Angular: 20.0.5
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.2000.4
@angular-devkit/build-angular 20.0.4
@angular-devkit/core 20.0.4
@angular-devkit/schematics 20.0.4
@angular/cli 20.0.4
@schematics/angular 20.0.4
rxjs 7.8.2
typescript 5.8.3
zone.js 0.15.1
D:\projects\zh-converter\claim-file-converter\claim-file-converter-gui>
Anything else relevant?
No response