Keep getting this error in Server Error Log on a customers system. We can’t replicate the error on our development system. chunk-EL5ZNZFE.js is in the Tomcat/webapps/ folder, but the contents of the file don’t help me. Any clues on how to decrypt the error message?
TypeError: Cannot read properties of undefined (reading 'enter')
at t.keyPressed (http://192.168.0.152/aquarius/chunk-EL5ZNZFE.js:746:13398)
at http://192.168.0.152/aquarius/chunk-EL5ZNZFE.js:746:59690
at tg (http://192.168.0.152/aquarius/chunk-KDZYB6LY.js:7:120120)
at o (http://192.168.0.152/aquarius/chunk-KDZYB6LY.js:7:120289)
at HTMLTableElement.<anonymous> (http://192.168.0.152/aquarius/chunk-KDZYB6LY.js:8:24239)
at a.invokeTask (http://192.168.0.152/aquarius/polyfills-RKEYROVM.js:1:7096)
at Object.onInvokeTask (http://192.168.0.152/aquarius/chunk-KDZYB6LY.js:7:24704)
at a.invokeTask (http://192.168.0.152/aquarius/polyfills-RKEYROVM.js:1:7017)
at _.runTask (http://192.168.0.152/aquarius/polyfills-RKEYROVM.js:1:2369)
at g.invokeTask [as invoke] (http://192.168.0.152/aquarius/polyfills-RKEYROVM.js:1:8168)
Based on the log, I’m having a guess that you’re using a servoy-extra-components Table. An error like that is client side so checking Servoy’s angular implementation can help.
I replicated in developer by clicking on a row and pressing the ‘enter’ key.
I found the likely culprit here:
Servoy isn’t setting a default value for keyCodeSettings (they probably should). Initialising the property should fix the issue.
Edit: Actually looking at the code again, they are checking if keyCodeSettings is set on all keys but the ‘enter’ key. Although you can get around it by setting the property yourself, it is a bug in Servoy’s code so you should submit a bug report.