Unity WebGL - error CS0117: 'NetworkTransport' does not contain a definition for 'SetMulticastLock' (2019.1.0f2)

I upgraded my editor to version 2019.1.0f2, and ever since I’ve been getting the error code error CS0117: ‘NetworkTransport’ does not contain a definition for ‘SetMulticastLock’ on my WebGL builds. I did not change anything to the code since the upgrade, only accepted upgrading the project when I was prompted upon first use of the new editor. My project also does not use any networking features, so I am not sure why I am getting this error at all.

Platform: OS X

Editor version: 2019.1.0f2

Build target: WebGL

Full error: Library/PackageCache/com.unity.multiplayer-hlapi@1.0.2/Runtime/NetworkDiscovery.cs(449,34): error CS0117: ‘NetworkTransport’ does not contain a definition for ‘SetMulticastLock’

Ideally I’d like a fix for this, although since I am not using any of the failing code some sort of disabling “quick-fix” would also be quite welcome.

Window > Package Manager > Multiplayer HLAPI > Remove Package

Try building again. It seems when Unity added some kind of alternate multiplayer functionality it screwed something up with the original.

Thanks, every new version of unity comes with new exciting bugs.

Is there a version of this that works? I’m using 1.0.4 and this is still happening. My game requires the multiplayer HLAPI.