Unknown widget: chart.Charts"
From Documentation
Line 12: | Line 12: | ||
= Possible Causes and Solutions= | = Possible Causes and Solutions= | ||
+ | There must be something at the client-side affecting the widget registration. | ||
+ | |||
+ | == Load a JavaScript that interferes widget loading == | ||
+ | There are possibilities, e.g. if you load highchart js by yourselves, this might cause this error. | ||
+ | |||
+ | Remove the javascript or resolve the key code that interferes zk widget loading can solve this. | ||
== Mixing 2 different versions of ZK jar == | == Mixing 2 different versions of ZK jar == | ||
+ | Please check your jar and just make sure you include one version of ZK jar in one application. | ||
+ | |||
− | == | + | = Debugging Steps = |
+ | Check if you include any non-ZK javascript, remove them one by one to find the one that interferes ZK. |
Revision as of 04:12, 11 June 2021
Problem Decription
You see the error below in a browser developer tool > Console tab:
Uncaught Unknown widget: chart.Charts
Why It Happens
ZK fails to instantiate a chart widget because the chart js isn't loaded. (the widget class chart.Charts
isn't registered successfully).
Possible Causes and Solutions
There must be something at the client-side affecting the widget registration.
Load a JavaScript that interferes widget loading
There are possibilities, e.g. if you load highchart js by yourselves, this might cause this error.
Remove the javascript or resolve the key code that interferes zk widget loading can solve this.
Mixing 2 different versions of ZK jar
Please check your jar and just make sure you include one version of ZK jar in one application.
Debugging Steps
Check if you include any non-ZK javascript, remove them one by one to find the one that interferes ZK.