I have had a multitude of problems recently trying to use webgl and visual scripting together, I ceated a new project with the sample scene in URP version 2021.2.12f1 built it for WEBGL without modifications and worked great at first, but when I add a scripting machine with any basic code and build it a second time, the code simply won’t work and theses errors appear (look attached screenshot), I haven’t toutched any settings except build compression set to none.
This happens since version 2021.2.11f1
Try to isolate the issue as much as possible. Is it specific nodes in VS or just having VS at all?
If just adding any VS is the cause - posting in the VS Forum will gain more traction. Might not be a WebGL issue, might be a IL2CPP issue or a VS issue. Unity will redirect it internally but it has to catch the eye of a dev first.
Seems like it’s a easily reproductible issue. Always submit a bug report with repro project. And add the case number to your forum posts - it helps Unity Devs Immensely.