-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
devcert issue with --http2 #252
Comments
Hi @davezuko - what OS was this on? |
I should have included that, my apologies. So far I've reproduced it in:
I have a Macbook that I can test as well. I'll report back once I give that a go. The logs I showed above were from the Ubuntu run. Below are from a clean wmr install on Windows 10 outside of WSL:
|
It looks like on Linux So for me to get this working on Arch I had to patch in the correct paths as mentioned in that thread, go and make the correct directories (I did not have
|
Can confirm, I got this exact same issue on Powershell and Git Bash. |
Hello again!
I was trying out the
--http2
flag and ran into an issue related to missing files. It appears to be caused by devcert attempting to read some static configuration files from its package:devcert/openssl-configurations
. Since devcert code is bundled and not included as a dependency, those files don't actually exist after awmr
install:I manually pulled those files into my node_modules to fix the issue. That worked. Then, to try to debug the root cause further, I created a fresh wmr project and surprisingly it didn't reoccur! After some digging, I discovered that this was because the code path that creates the Root CA is skipped if the CA already exists, masking the missing file issue on subsequent runs. I suspect this is why you may not have seen the issue on your end.
See: https://github.com/davewasmer/devcert/blob/0386f338d16e8372c0480195394c5518fa141f9c/src/index.ts#L93-L95
If you force this condition to true (e.g. in the
wmr.cjs
bundle) you should see the error.The text was updated successfully, but these errors were encountered: