0

Failed to mount: Cannot read property 'parentNode' of undefined

asked 2021-07-01 19:55:22 +0800

zkulm gravatar image zkulm
100 1

Hello together,

we recently upgraded our zk version from 8.5.0 to 9.5.0.3. Afterwards we got this error: image description

With this error in the browser console: image description

With the old zk version this works completly fine, and with the new version suddently this error appeared.

Does someone know this problem? What can we do to prevent this error?

Best Regards, Matthias

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-07-02 11:11:56 +0800

cor3000 gravatar image cor3000
6005 2 7
ZK Team

"Cannot read property 'xyz' of undefined" is the JS equivalent of a NullPointerException ... As kind of errors can happen under many circumstances so there's no single thing you can do. First you'll have to find the root cause of this ... the stacktrace itself isn't very informative in this case. The only hint is that this happens during widget binding (when DOM elements are created). In the browser console you can enable a switch to pause the JS executions on uncaught errors. Then it's possible to inspect the current variables causing this. They will contain the widgets (representing the server side components) which are involved in this error.

Maybe that gives you hint where the problem comes from.

In case you identify the component (combination) causing this problem please provide the details here.

Unrelated to the above... often during/after a version upgrade (if not managed by maven/gradle) the jar files might be using mixed versions causing all sorts of undefined behavior, so please make sure your server side deployment starts up without inconsistent version warnings/errors.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2021-07-01 19:55:22 +0800

Seen: 6 times

Last updated: Jul 02

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More