question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError

See original GitHub issue

Using google chrome I tried to run he script and recieved the following error pointing at line 12 of jspd.plugin.autotable.js Uncaught TypeError: Cannot read property 'events' of undefined. And because of this the autoTable function in unrecognised. How do I fix this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
snehalatapimpralecommented, Mar 6, 2017

Hi, I used following code and I am getting error EXCEPTION: Error in ./AppComponent class AppComponent - inline template:6:12 caused by: this.internal.getCurrentPageInfo is not a function

I tried following code , please suggest what I missed import { Component } from ‘@angular/core’; declare let jsPDF:any; @Component({ selector: ‘my-app’, template: <button (click)="trythis()">click</button> }) export class AppComponent{ cols:any=[ {headerName: “NAME”, field: “name”, width: 250}, {headerName: “AGE”, field: “age”, width: 250}, {headerName: “GENDER”, field: “gender”, width: 250} ]; rows:any=[ {name: “Geller”, age: 30, gender: “Male”}, {name: “Geller”, age: 28, gender: “Female”}, {name: “Tribbiani”, age: 29, gender: “Male”}, {name: “Bing”, age: 30, gender: “Male”}, {name: “Green”, age: 28, gender: “Female”}, {name: “Buffay”, age: 29, gender: “Female”} ]; trythis() { var doc = new jsPDF(‘p’, ‘pt’); doc.autoTable(this.cols, this.rows); doc.save(“table.pdf”) } }

0reactions
simonbengtssoncommented, Apr 17, 2015

No worries, let me know if run into other issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is an uncaught TypeError in JavaScript? - Educative.io
According to the Mozilla website for developer documents, “the TypeError object represents an error when a value is not of the expected type.”...
Read more >
How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
Read more >
JavaScript: Uncaught TypeError: n is not a function
This is a standard JavaScript error when trying to call a function before it is defined. This error occurs if you try to...
Read more >
How to fix Uncaught TypeError in JavaScript? - Stack Overflow
The error means that aTags[i] is undefined . Usually submitting multiple forms like that doesn't make a lot of sense. – Pointy ·...
Read more >
Uncaught TypeError : Cannot read properties of undefined
Looking for ways to handle Uncaught TypeError: Cannot read property of undefined in JavaScript? This guide will help you to catch errors.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found