Uncaught TypeError: Cannot read property 'Api' of undefined ?
See original GitHub issueHello, I’m trying to implement the angular-datables packages, but I got an error : "Uncaught TypeError: Cannot read property ‘Api’ of undefined " angular-datatables.js:4 (anonymous function)
I tried to use the zero configuration example. My design look like :
<table datatable="" class="row-border hover">...</table>
Do I miss something?
Thanks for your help.
Issue Analytics
- State:
- Created 9 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
cannot read property 'Api' of undefined to load responsive ...
I was struggling with the same issue, the fix I found was quite simple: You need to reorganize the scripts you applying to...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >How to Prevent the Error: Cannot Read Property '0' of Undefined
If the items field is undefined , the previous code will throw the Cannot read property '0' of undefined error. If a new...
Read more >Cannot read properties of undefined — DataTables forums
Debugger code (debug.datatables.net): Uncaught TypeError: Cannot read properties of undefined (reading 'sVersion') at gatherData ...
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined ... JavaScript TypeError is thrown when an operand or argument passed to a function is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hopefully this will help someone, but I had forgot to include a reference to the jQuery datatables jquery library. Adding prior to the angular library reference fixed it for me.
I’m trying to display two ag-grid on the same page. i got the following error; Uncaught TypeError: Cannot read property ‘api’ of undefined.
this is how i tried. html code: <script type="text/javascript" src="../javascript/jquery/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="../javascript/angular/angular.js"></script> <script type="text/javascript" src="../javascript/bootstrap/bootstrap.min.js"></script> <script type="text/javascript" src="../javascript/angular/angular-route.js"></script> <link rel="stylesheet" type="text/css" href="../ngTable/ag-grid.css">
<link rel="stylesheet" type="text/css" href="../ngTable/theme-fresh.css"> <script type="text/javascript" src="../angMod/main.js"></script> <script type="text/javascript" src="../ngTable/ag-grid.js"></script>This is my Js script: