Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read the property 'stack' of null - v0.5.0-alpha1 #575

Closed
wbarrantes opened this issue Apr 22, 2015 · 3 comments
Closed

Comments

@wbarrantes
Copy link

I was using html2canvas v0.4.1 but I updated to v0.5.0-alpha1 to trying to solved an issue on IE11. (basically the canvas was cut off on IE11, works fine on Chrome and FF).

But know I get the following error (in any browser):

screen shot 2015-04-22 at 2 22 02 pm

Uncaught (in promise) TypeError: Cannot read property 'stack' of null {stack: (...), message: "Cannot read property 'stack' of null"}message: "Cannot read property 'stack' of null"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }proto: Error(anonymous function) @ html2canvas.js:2092NodeParser.createStackingContexts @ html2canvas.js:2086(anonymous function) @ html2canvas.js:1932(anonymous function) @ html2canvas.js:2697

The error in on the line html2canvas.js:2092

container.assignStack(container.parent.stack);

Any thoughts?
Thanks!

@wbarrantes wbarrantes changed the title TypeError: Cannot read the property 'stack' of null - v0.5.1-alpha1 TypeError: Cannot read the property 'stack' of null - v0.5.0-alpha1 Apr 22, 2015
@wbarrantes
Copy link
Author

Hi,

I'm using on the same project a game framework called 'Enchant.js'. I
noticed that framework renames a class called 'Node' ('Node' is the named
of a class used by the library html2canvas v0.5.0 and higher). To fix this
issue I've renamed the class 'Node' on enchant.js to avoid override this
class.

Checked if you have another 3-party libraries on your project, and see if
they used a class called 'Node' (or maybe is overriding another class).

Hope this helps!

2015-05-09 8:12 GMT-06:00 Xinyu Zhang notifications@github.com:

I encounter the same issue, how do you fix it?


Reply to this email directly or view it on GitHub
#575 (comment)
.

@linjinjin123
Copy link

@wbarrantes Hey!!! Thank you very much !!

@JanisE
Copy link

JanisE commented Dec 14, 2015

Got the same problem - got a globally defined function named "Node". I don't see why this issue is closed, as a library's internally used class names should not conflict with application they're used in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants