-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
IE 11 issue, Error: Uncaught (in promise): Error: Member not found. #1374
Comments
I added a link to the following promise library and it seemed to fix IE 11 for us. |
Without code to reproduce the error I can't really help. |
Hi @niklasvh , This is demo sample i have hosted on GitHub you can see - GitHub Html2Canvas Demo Full code is also uploaded on github, if you want to see: Code package How to run project:
|
Hi @jelkins8, I have tried this solution but its not working for me. Thanks |
Hi @niklasvh , updated, after using the bluebird polyfill my stack trace is:
|
I am facing the same issue for html2canvas: member not found for IE. |
I've reproduced the issue and located the cause, it happens in the As follows works:
Note the try...catch. I'll raise a PR. |
Appears to cause a regression in thanks |
Hi @niklasvh, Thanks |
Hi @Prabhat2404, the fix I've proposed in #1415 works great for me, however it does fail one of the radial gradient tests, which I've asked @niklasvh to have a look at. The issue occurs for me when using font-awesome icons, in particular fa-spin. |
same problem here |
The issue is still exists for IE in case we try to print html code. |
+1 |
2 similar comments
+1 |
+1 |
It helps for me! |
@evgenyjam That solution still has a bug, you need to add an empty string as the initial value for reduce. I mentioned that on the PR, but the author hasn't updated it yet. But with that change it works for me. |
@cyouden this way? |
@BrunoMarc No, it's the last argument for reduce, so: (E.g. see the code the change is proposed to replace in that diff, it correctly uses the initial value for reduce.) |
@cyouden Thanks for the response! I have inserted this code in html2canvas.js but the Member not found still persist, any ideas? |
@BrunoMarc No idea, that change was enough to get it working for me. |
Hey - sorry to be late to the party, I've just committed a change with the default empty string for the reduce, as suggested, hope that helps! |
@niklasvh @BrunoMarc @cyouden good news the build is passing for the PR |
@simonpinn I am trying to use html2canvas-1.0.0-alpha.10 version for my angular 4 code. I am getting following error in all browsers. And only part of html is getting printed. 34487ms html2canvas: html2canvas $npm_package_version |
@simonpinn I am using the way as follows. Is there any issue with latest version 1.0.0-alpha.10 in tyscript (angular 4) code? Can you please help me with solution. I am very much in need. |
@bandacs this issue is for solving an IE 11 error for uncaught promises, please raise an issue against the alpha.10 build, if you are having a problem. thanks |
@simonpinn @cyouden |
Fix merged in v1.0.0-alpha.11 |
I have reactjs project and i did npm install for html2canvas updates. but in IE 11 browser its still showing me Member not found error. Please help. I checked on Windows 8 system |
I am using the v1.0.0-alpha.11 and it works great in Chrome but getting an error on IE 11 on the same lines |
Hello. Same error for me. Our customer uses IE11 as default ... |
Fixed it!! |
fixed with bc270bb |
Hi All, How can i get a new published version of it to use in my project? currently i tested by editing in node-modules in my local environment. to push it production need a new published version of 'html2canvas' version? can you please help me to get it? |
Currently i am using the "html2canvas": "^1.0.0-rc.1", which doesn't have the fix. |
…...catch (#1415) * niklasvh/html2canvas#1374 - Wrap accesing the cssText property in a try...catch
Got error : "html2canvas $npm_package_version. Error: Uncaught (in promise): Error: Member not found."
When i try to get canvas.
Code:
html2canvas(document.querySelector("#capture")).then(function (canvas) {
console.log(canvas);
document.getElementById('here-appear-theimages').appendChild(canvas);
});
Using:
Angular version : 4.0.1
OS: Window 10
Also added refrence of: https://cdn.jsdelivr.net/npm/es6-promise/dist/es6-promise.auto.js
Attached error screenshot.
The text was updated successfully, but these errors were encountered: