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

Cannot read property 'logging' of undefined #543

Closed
csbenjamin opened this issue Feb 22, 2015 · 5 comments
Closed

Cannot read property 'logging' of undefined #543

csbenjamin opened this issue Feb 22, 2015 · 5 comments

Comments

@csbenjamin
Copy link

The log module uses window.html2canvas.logging and window.html2canvas is undefined because I'm using html2canvas inside requirejs

@usmonster
Copy link
Contributor

Will probably be resolved with #528. Might want to follow that issue (and close this one?).

@legomushroom
Copy link

Hey guys!
Having the same issue with webpack and html2canvas 0.5.0-alpha2.
Any thoughts?

@usmonster
Copy link
Contributor

@legomushroom my guess is it's the same issue as #528, mentioned above. Feel free to subscribe to it.

@hustclutch
Copy link

i have the same issue as @legomushroom , and i solved it by add html2canvas into window like this:

window.html2canvas = html2canvas;
html2canvas.default(document.body, {
onrendered: function(canvas){
var canvasImg = canvas.toDataURL("image/jpg");

@jdfreder
Copy link

I can verify that this is still a problem when loading with AMD

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

5 participants