All the while I using the plugin above to support WebGL mobile input, which pop up a keyboard. Previously the Unity Version I using was Unity 2020.3.12f1 LTS and this issue never happen.
Mainly it was these line in the .jslib plugin that throw the error:
Runtime.dynCall();
I not sure this is Unity issue or the plugin issue so I’m trying my luck here.
We have a fix for a potentially related issue on its way. With a little luck it might make it in time for the next beta release b7.
If you have a reproduction project, it would still be helpful if you could submit a bug report for your issue so we can make sure your use case is also investigated and covered.
If you are using any script file and getting "Uncaught ReferenceError: x is not defined " which means ‘x’ is either a variable or a method which you are trying to use before declaring it using var keyword. This means that there is a non-existent variable referenced somewhere. This variable needs to be declared, or you need to make sure it is available in your current script or scope otherwise , it will endup throwing this ‘x’ is not defined error . This usually indicates that your library is not loaded and JavaScript does not recognize the ‘x’.
To solve this error: Load your library at the beginning of all your scripts.
There can be multiple other reasons for this issue: