Skip to content
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

Package.json parsing %APPDATA% whitespace errors #5

Closed
JoeSwindell opened this issue Jun 29, 2022 · 3 comments
Closed

Package.json parsing %APPDATA% whitespace errors #5

JoeSwindell opened this issue Jun 29, 2022 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@JoeSwindell
Copy link

JoeSwindell commented Jun 29, 2022

This is a known issue and the fix has already been merged into the official Microsoft Repo.

dotnet/spa-templates#35

The path needs to be wrapped in quotes:

--ssl-cert changes:

--ssl-cert %APPDATA%\\ASP.NET\\https\\%npm_package_name%.pem

becomes

--ssl-cert \"%APPDATA%\\ASP.NET\\https\\%npm_package_name%.pem\"

--ssl-key changes:

--ssl-key %APPDATA%\\ASP.NET\\https\\%npm_package_name%.key

become

--ssl-key \"%APPDATA%\\ASP.NET\\https\\%npm_package_name%.key\"

NOTICE: you end up with double quotes at the end of the line! This is correct.

"start": "ng serve --ssl --ssl-cert \"%APPDATA%\\ASP.NET\\https\\%npm_package_name%.pem\" --ssl-key \"%APPDATA%\\ASP.NET\\https\\%npm_package_name%.key\"",

@Twerpa
Copy link

Twerpa commented Nov 10, 2022

Thank you Joe, I was lost for a moment!

@Tony20221
Copy link

The url of the link in the post is wrong. I had to use the text of the link. I am using VS 17.4.3 and it seems the quotes haven't made it yet in the template.

@JoeSwindell
Copy link
Author

Thanks, I fixed the link!

@Darkseal Darkseal added bug Something isn't working documentation Improvements or additions to documentation labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Development

No branches or pull requests

4 participants