I have a WebGL project working well in Editor, in Play mode, but generates dozen of errors per second in javascript console, in a web browser (same errors in Firefox or Chrome). Probably one error per frame.
The error is in tjhe Javascript console is :
ScenarioMapEditor-WEBGL.framework.js.gz:10 ArgumentNullException: Value cannot be null.
Parameter name: shader
I suspect there is a call to a supposed shader, which is NULL, but not sure. My C# code does not manipulate shaders.
I built with “Development Build” ON, but not helpful.
I was able to use profiler but was not able to find where the error is triggered…
To the left of “ArgumentNullException” there is a triangle button. Does this reveal more info?
If this prints out a callstack but without debugging info (method name, line number) try building with full exception support enabled - you can change this somewhere in Player Settings for the WebGL platform.
I can imagine you may be using a shader (through a material which may come from a 3rd party asset) that isn’t compatible with WebGL. But that is just a guess.