I was unable to view a newly created sharepoint framework webpart in Chrome browser and the error shown was
This site can’t provide a secure connection
localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
The only solution I could find for this problem was to change protocol of the local website from https to http.
Specifially, open serve.json file under config directory and set https = false, and initialPage = http://localhost:5432/workbench
This site can’t provide a secure connection
localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
The only solution I could find for this problem was to change protocol of the local website from https to http.
Specifially, open serve.json file under config directory and set https = false, and initialPage = http://localhost:5432/workbench
{
"$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
"port": 4321,
"https": false,
"initialPage": "http://localhost:5432/workbench",
"api": {
"port": 5432,
"entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
}
}
If you know of any other way to fix this error without changing protocol, please do let me know.
More information can be found on this blog https://github.com/SharePoint/sp-dev-docs/issues/2343
More information can be found on this blog https://github.com/SharePoint/sp-dev-docs/issues/2343
No comments:
Post a Comment