Skip to content

ng serve broken due to a special char in path #21646

@AndreaMariotti-WRK

Description

@AndreaMariotti-WRK

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

Using the command
ng serve --open

it results in alot of "Module build failed: Cannot find module xxx".

The problem is due by the presence of a special char in the path (eg.: C:\Sources\C# API\AppName\Ui)
"C# API" il the problem, if I named it "C_API" everything work fine.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

Angular CLI: 12.2.2
Node: 14.17.5
Package Manager: npm 7.21.0
OS: win32 x64

Angular: 12.2.2
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.2
@angular-devkit/build-angular   12.2.2
@angular-devkit/core            12.2.2
@angular-devkit/schematics      12.2.2
@schematics/angular             12.2.2
rxjs                            6.6.6
typescript                      4.3.5

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions