You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
Yes
Description
After zone.js update to 0.14.3, walletconnect integration is breaking in our app. earlier it was opening QR code modal without any error.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
core.mjs:11806 ERROR TypeError: Cannot set property signal of [object AbortController] which has only a getter
at zone.js:1957:38
at ae.addKeyboardEvents (index.js:1:67056)
at ae.onOpenModalEvent (index.js:1:66362)
at index.js:1:65722
at index.js:1:7509
at vanilla.mjs:242:11
at _ZoneDelegate.invoke (zone.js:368:26)
at Object.onInvoke (core.mjs:14778:33)
at _ZoneDelegate.invoke (zone.js:367:52)
at _Zone.run (zone.js:129:43)
Please provide the environment you discovered this bug in (run ng version)
The text was updated successfully, but these errors were encountered:
imaksp
changed the title
AbortController error with walletconnect lib with zone.js 0.14.3
AbortController error with walletconnect lib after zone.js 0.14.3 update
Jan 29, 2024
This will happen when passing an AbortController as options for addEventListener. That's a bit odd but should work, considering that it does have the signal field (but it's readonly)
I think zone.js can prepare a separate options object instead of mutating the original object, or a wrapper using Object.create(options) or similar.
@imaksp
The reason is the walletconnect lib pass the AbortController directly to the addEventListener function, and the AbortController.signal is readonly, just like @JoostK said, I will create a new Options to fix this issue.
Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
Yes
Description
After zone.js update to 0.14.3, walletconnect integration is breaking in our app. earlier it was opening QR code modal without any error.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
For now solved by downgrading zone.js to 0.14.2.
This line from latest zone.js is throwing error:
angular/packages/zone.js/lib/common/events.ts
Line 480 in c213a4e
The text was updated successfully, but these errors were encountered: