Adminlte: Uncaught TypeError: Cannot read property 'getContext' of null at HTMLDocument

Created on 20 Nov 2019  路  9Comments  路  Source: ColorlibHQ/AdminLTE

Describe the bug
I tried to integrate AdminLTE V3.0 into my Application.

Expected behavior
When I launced the Application, I expected the Dashboard V1 to display as its in AdminLTE v1 dashboard v1, but I got this error:

jquery.min.js:2 Uncaught TypeError: Cannot read property 'getContext' of null at HTMLDocument.<anonymous> (dashboard.js:113) at e (jquery.min.js:2) at t (jquery.min.js:2)

See the diagram:
Screenshots
adminlte_jquery2

Then this made the dashboard not to display the graph appropriately:

adminlte_template

Environment :

  • AdminLTE Version: [v3.0.0]
  • Operating System: [Windows
  • Browser (Version): [Chrome]

Additional context
How do I resolve this please?

plugins bug 3.x

All 9 comments

Do you get other errors/warings too or only the warning and the one error?
Does this error comes also on the online demo?
Did you changed the content in Dashboard 1?

@REJack - 1. No, I didn't get other errors/warnings

  1. No, this error is not on the online demo.
    3.I didn't change the content in Dashboard 1

I've tested a bit the dashboard.js and the the error comes when the canvas (<canvas id="revenue-chart-canvas">) is not available, but the dashboard js files are only for demo purpose and not required.

OK. Thanks

Is this issue still open?

Yes, its still open? How do I close it since its resolved?

I don't understand, is your problem solved?

Yes, the problem is solved. Thanks

The problem also appears in the demo version.
appears after a few seconds

Was this page helpful?
0 / 5 - 0 ratings

Related issues

frlinw picture frlinw  路  3Comments

tester10 picture tester10  路  3Comments

EliuTimana picture EliuTimana  路  4Comments

gaea44 picture gaea44  路  3Comments

acacha picture acacha  路  4Comments