Open jhudsoncedaron opened 5 days ago
I am also experiencing this issue now with a project being run from a Github Action.
I had built and deployed a branch targeting dotnet 8 on October 5th without issue. I was working on a new branch today and started to run into this error trying to deploy it. As a troubleshooting step, I re-ran the same branch from October 5th and it's now failing with the same error - so this was working in the past.
The relevent snippet from the action run was:
> project@0.0.0 build
#21 15.36 > tsc && vite build
#21 15.36
#21 34.11 There was an error exporting the HTTPS developer certificate to a file.
#21 34.13 failed to load config from ...path here.../vite.config.ts
#21 34.14 error during build:
EXEC : error : Could not create certificate
Describe the bug
With a new home directory, check out and build an application that wants the default https certificate (such as a vite application)
Note this won't reproduce out of your home directory, only a new one.
It's being talked about here: https://github.com/vitejs/vite/discussions/16296#discussion-6433527
Troubleshooting results: https://github.com/vitejs/vite/discussions/16296#discussioncomment-10894479
To Reproduce
Build Error
failed to load config from /github/workspace/vite.config.js error during build: Error: Could not create certificate. at file:///github/workspace/vite.config.js.timestamp-1711659903508-baa8584510e9a.mjs:27:11 (...at etc...)
The stacktrace is misleading; the line "Error: Could not create certificate" comes out of the dotnet command, and got thrown by vite.