Maximum call stack size exceeded

Unity is published as webgl, and this error will appear when I publish new content, which can only be solved by clearing the cache

Hello @791127866

Welcome to the forum.

It’s possible that this error is due to some missing function/API which is being called repeatedly (probably from Unity’s Update). This might help you to identify the missing function call. Otherwise, you can try disabling Strip Engine Code or setting Managed Stripping Level to minimal from Editor player settings to be sure Unity is not removing any method that you may use at runtime.

Do share more details like console logs or project link here, so we can test this on our end to better help you.

Best