partytown icon indicating copy to clipboard operation
partytown copied to clipboard

new Image call by twitter-ads does not create HTML element

Open ghost opened this issue 1 year ago • 2 comments

  • [x] I am interested in helping provide a fix!

Describe the bug Twitter ADS UWT throws error when it tries to create image e with new Image() and then access display on e.style (el.style.display = 'none'); This thrown error seems to block other scripts from being executed.

To Reproduce Steps to reproduce the behavior:

  1. Clone 'npm run dev'
  2. Open localhost:3000
  3. Open console
  4. See error

Reproduction link Couldn't get Codesandbox to run, so it's probably better to clone the repo. Included link just in case you get it working.

Expected behavior No errors being thrown, image being added normally. Other scripts should execute.

Partytown version ^0.6.1

ghost avatar Jul 12 '22 10:07 ghost

Experiencing the same issue on 0.6.4

image

dbashford avatar Jul 27 '22 20:07 dbashford

Commenting for visibility as I've merged my two accounts into one and it untracked all PRs.

akselander avatar Aug 15 '22 09:08 akselander