partytown
partytown copied to clipboard
new Image call by twitter-ads does not create HTML element
- [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:
- Clone 'npm run dev'
- Open
localhost:3000
- Open console
- 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
Experiencing the same issue on 0.6.4
![image](https://user-images.githubusercontent.com/581127/181369057-d1f4c93d-46ef-4d6d-a7ff-2ab826fff9f1.png)
Commenting for visibility as I've merged my two accounts into one and it untracked all PRs.