Võ Cát Thư
Võ Cát Thư

Reputation: 47

Uncaught Error: Graph container element not found

I saw answer "JavaScript's code gets executed before the DOM contains #annual element. Put the javascript after the div or use jQuery.ready()" But I don't know to put after what div?

<script src="/bower_components/morris.js/morris.min.js"></script> this is script include?

enter image description here

error:

Uncaught Error: Graph container element not found
    at d [as constructor] (morris.min.js:6)
    at d.c [as constructor] (morris.min.js:6)
    at new d (morris.min.js:6)
    at HTMLDocument.<anonymous> (dashboard.js:129)
    at j (jquery.min.js:2)
    at k (jquery.min.js:2)

Upvotes: 1

Views: 4825

Answers (2)

kannibal615
kannibal615

Reputation: 27

i confirm resolution : im using AdminLTE in angular :

delete the import dashboard.js from the scripts array in angular.json file.

Upvotes: 1

wissem snene
wissem snene

Reputation: 11

If you are using adminLte template in an angular project, you have to delete the import dashboard.js from the scripts array in angular.json file.

Upvotes: 1

Related Questions