Today I’ll talk about an error that can occur when you start to develop SPFx.
Working with this, you can face yourself with an error of security when you try to launch the local workbench “This site can’t provide a secure connection”
To fix this, you should specify an environment variable in your user profile “NODE_NO_HTTP2” with the value “1”
Thanks to my colleague stephane which was confronted to this error and shared his solution.
After some search, I found that the error was discuss on github and a solution without modifying a variable is provided.
When you run your “gulp serve”, run instead “NODE_NO_HTTP2=1 gulp serve”
Hoping this helps!