I found the problem was a missing installation of webkit.
Installation fixed it:
"sudo apt-get install libwebkit2gtk-4.0-dev"

I do not understand the installation routine in detail, but probably this problem could be communicated to the user better, by adding a fallback case to "build-webview"?