Open gingters opened 8 months ago
Seeing identical behaviour.
Steps to reproduce:
cd c:\projects
ng new my-app
ng build
ERROR
... my-app\src\main.ts' is missing from the TypeScript compilation. [plugin angular-compiler]
If I add "preserveSymlinks" to angular.json build succeeds, and the server starts, but nothing shows on the page.
cd p:\
and everything succeeds.Checked in windows vmware instance on mac but the issue is not reproducible.
@MartinSGill Could you please provide your ng version
along with the node -v
.
Which @angular/* package(s) are the source of the bug?
compiler-cli, compiler
Is this a regression?
No
Description
I'm on Windows 11, using a dev drive (
D:
). The dev drive is mounted toC:\Dev
as a mounted volume.I have
ng new
ed a project on this dev drive (i.e.D:\sg\projects\test-project
).When I run
ng serve
and alsong build
fromD:\sg\projects\test-project
all is fine. When I runng serve
fromC:\Dev\sg\projects\test-project
(the usual location) it builds the projects, starts the dev server, but in the servedindex.html
file the two script tags at the end of the body (polyfills-xxx.js and main-xxx.js) are missing. So the application won't start. When runningng build
from the mounted volume the same problem can be seen. Both script tags are missing in the generated file.There is also no output that would hint at a problem.
Expected behaviour: It should workl. Alternatively, if it won't generate the script tags, it should at least print a warning or error to the console that something is wrong and the generated application won't run, and maybe not running the command from a mounted volume but directly onthe volume should be done instead. That said, i would be really unhappy with that alternative.
Please provide a link to a minimal reproduction of the bug
ng new on mounted dev drive
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response