-
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
Clone node: Setting className for SVG element raises error #1868
Comments
Im getting the same problem |
getting the same error |
getting the same problem |
I updated html2canvas to latest version 1.0.0-rc3 and started seeing this issue. Console Error: |
Hello guys, |
Thanks. It worked for me. |
Same problem here |
I caught this error with the text: Torten dekorieren mit Fondant - 6 süße Inspirationen Probably it's related to this word -> süße, got fixed once I removed it |
Latest non-min doesn't work for me regarding same issue. 1.0.0-alpha.12 didn't help either. Update: Removing references to modernizr allowed me to get latest html2canvas to work. Cheers. |
This issue occurs for me when there is a |
I'm having the same problem. I tried 1.0.0-alpha.12 and v1.0.0-rc.3 |
Did not work for me, any solutions will be appreciated |
I'm also receiving the same error. Only seems to occur with rc.2 and rc.3 releases. I want to update to rc.3 to fix an issue with font-family not displaying correctly, but then exporting svgs breaks with certain elements. I've reverted to rc.1. Running Chrome on Mac. |
As it was beta and alpha, I took their js file and included it in my angular project. + before calling the html2canvas method I ran this method out side the ngZone. |
I confirm that reverting to rc.1 fixed it for me as well, tested with Chrome on win10. |
Hello guys, 1.0.0-alpha.12 works just fine. |
Well, i dont have any SVG that is used in canvas, however i'm getting this error... (this behaviour is on chrome, it works on FF). - 1.0.0-rc.3 |
because the latest version raise this issue niklasvh/html2canvas#1868
This is still an issue on: 1.0.0-rc.5. |
Hey!
I switched to htmltoImage as this reo doesn't look like will be updated or
fixed. Not it will come out of RC version
…On Thu, 3 Oct 2019, 2:23 pm Nicu Spinu, ***@***.***> wrote:
This is still an issue on: 1.0.0-rc.5.
Any chance of getting it fixed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1868?email_source=notifications&email_token=ABIHC5PIQDVTRNMXBDMQKE3QMWXJFA5CNFSM4HR732BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHPX2A#issuecomment-537852904>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIHC5LJUK6VAE4NLU3NCT3QMWXJFANCNFSM4HR732BA>
.
|
Hey! I had the same problem in a React app. I had some FontAwesomeIcon on my page, removing them fixed the problem. (even if the font icons were not in the selected element that I wanted to canvas) |
I have created a pull request that fix this error. |
Any news about the PR? |
I have the same issue with
|
use dom-to-image API For JS,Angular Which is better than this. |
@maxaqquepucho It's because the fix is not shipped @niklasvh could you help create a new release? |
@niklasvh, will you please release v1.0.0-rc.6 with this fix? What do you need to make this happen soon? |
@niklasvh, the community using this library expects more frequent updates than you are providing. (>3 months of inactivity) If you are unable to maintain this library on your own, please add some prominent contributors such as @andyedinborough and @cobexer as collaborators: https://github.com/niklasvh/html2canvas/settings/access. Maybe they can provide the maintenance and releases that this library needs. Thank you. |
@niklasvh This guy has been cloned the repo of the package, modify it, and he deployed it here: https://www.npmjs.com/package/@trainiac/html2canvas Thank you @niklasvh <3 |
Thank you @mhmdtshref |
@niklasvh Sir please note that this issue is still raising for version ^1.0.0-rc.5 please open this issue or resolve it by your side `printDocument(e){ // init ` |
I ran into the same issue and can confirm the fix in the latest master branch works for me. Hopefully |
…es error (niklasvh#2079) * fix: niklasvh#1868 Clone node, Setting className for SVG element raises error * fix: svg element type information
Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Please follow the general troubleshooting steps first:
Bug reports:
Setting className for SVG element will raise error, here's some stack trace, I'm using the non minified js version. I thinks the reason is probably I'm using fontawesome 5 SVG icon
Specifications:
The text was updated successfully, but these errors were encountered: