-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HandsOnTable causing a parameter mismatch error with String.startsWith() #4599
Comments
Hi @ZarifS Can you share your settings the instance's settings? I've just built a sample app
and relate to .full. files
using 0.34.5 (latest) version of CE and did not get the issue in the console. ps. does the error block you for doing any actions with the table? |
Hey, This is what we found: We found some information that's relevant. It's an interaction between ASP.NET and HOT. In ASP.NET, this construct: The crash happens because HOT is also intercepting String.startsWith (node_modules\handsontable\dist\handsontable.js around line 15099). It calls the original method with This only happens in debug mode. We found a workaround of specifying ScriptMode="Release", i.e. That doesn't stop ASP.NET from overriding String methods, but it prevents the validation. ASP.NET's version of String.startsWith only expects one parameter, and HOT is calling it with two. BTW String.startsWith is defined to have two parameters, so ASP.NET is wrong here. There's some background info that may help anyone else who stumbles upon this. Can you tell us though, why is HOT intercepting String.startsWith, and under what conditions does it do so? In our testing, it doesn't always seem to intercept it. Thanks. |
As stated in the comment this is not a bug in Handsontable so I'm going to close this issue. Thanks String.startsWith is a part of |
am still fighting with this thank you for giving no solution |
Description
After loading handsOnTable (community edition) from our node modules folder we began to see a error coming through the chrome javascript console: Uncaught Error: Sys.ParameterCountException: Parameter count mismatch.
The stack trace pointed at String.startsWith() as throwing the issue. After some investigation it seems like the distributed HoT code seems to be overwriting the default String.startsWith() function and in turn that function throws this exception. We believe the error is from Ajax during the call to the String.startsWith().
Steps to reproduce
Full Stack Trace:
Your environment
The text was updated successfully, but these errors were encountered: