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 properties of undefined (reading 'setProperty') #151

Open
1 of 2 tasks
annie-elequin opened this issue Aug 15, 2023 · 0 comments
Open
1 of 2 tasks

Comments

@annie-elequin
Copy link

Use case: description, code

Hi, I have a div on a page that I'm trying to convert to an image. We're just at the proof-of-concept stage, so here's the code:
https://gitlab.com/annie-elequin/ifctools/-/tree/v2

Specifically on the branch v2. You can clone it, run yarn start, then click on the "View" tab.
There is a button titled "Convert" that I've hooked up dom-to-image-more to.
Your view should look like this:
image

Open up the console to see the error (pictured below)

Expected behavior

The console should show the data url

Actual behavior (stack traces, console logs etc)

This error. I tried the same function on a simple div with only text inside, and it worked, so I'm sure it's something weird I'm doing...

image

Library version

3.1.6

Browsers

  • Chrome 49+
  • Firefox 45+
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