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 assign to read only property 'className' of object '[object SVGSVGElement]' #17

Closed
kkseven07 opened this issue Sep 26, 2019 · 1 comment

Comments

@kkseven07
Copy link

let url = domtoimage.toPng(document.getElementById('treeCanvas')).then(dataUrl=> { return dataUrl })
where treeCanvas is div with svg(ngx-graph component) inside it. Tried to search for this error, but it seems like this error only appeared in another library called html2canvas.

dom-to-image^latest
Chrome^73

@kkseven07
Copy link
Author

Ok. The problem was in fontawesome element <i class="fas fa-expand"></i>. Don't know why it happens, but just don't include it in your svg/div.

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

1 participant