Did it not build? Or, did you just have problems with the controllers in the WebVR application? That article is from November 2016. At the time I looked at it, the WebVR controllers were not enabled.
Unity was also working on enabling WebVR, so they may have released official support. If there isn’t an official solution now, I can look at this again.
If you’re building a simple app, then using A-Frame is a better solution if you’re building something for the Web. If it’s a fullblown Unity app, then you should also verify that the status of the controllers are.
What is your target, HTC Vive?
I just took a look at this one does have support for Oculus Rift controllers.
Do you have a Rift?