When trying to create a new 'Standalone TypeScript Angular Project' named HealthCheck in VS 2022 I get an Error Message "Visual Studio Code: Illegal characters in path

A.J. Marchese 21 Reputation points
2023-04-02T04:38:19.9333333+00:00

I am getting the same issue: When trying to create a new 'Standalone TypeScript Angular Project' named HealthCheck in VS 2022 I get an Error Message "Visual Studio Code: Illegal characters in path" when I click the create button to run the project for the first time. It will not create a project with all the necessary files, just a HealthCheck Folder with a HealthCheck.sln file which I cannot run. Thank you in advance and please let me know if you need any clarifying information.

Things to note:

-I am locating the new project in a blank folder.

-My Environment Variable PATH includes C:\ProgramFiles\nodejs

-I repaired VS Community and reinstalled all components Node, Angular etc...

-I reset my computer

-I reinstalled all the packages for all the components involved.

-VS 2022 will let me successfully create a project with any of the other templates

-I reset all VS 2022 Import and Export settings to default

My Versions:

VS Template: Standalone TypeScript Angular Project

Project Name: Health Check

Location: C:\Projects

VS Community: 17.5.3

Angular CLI: 15.2.4

Node: 18.15.0

Package Manager: npm 9.5.0

OS: win32 x64 Windows 11

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,144 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,011 Reputation points Microsoft Vendor
    2023-04-03T08:53:21.7733333+00:00

    Hi @A.J. Marchese, 

    Welcome to Microsoft Q&A! 

    Have you tried changing the project location to other Drive?

    Besides, please go to your environment variables and check if there are invalid paths. Please correct it. 

    Meanwhile, I could find the same feedback from other community users, I suspect it is a known issue with Angular project.

    You can also report it to Product Team in Developer Community

    Thanks for your understanding!

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.