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

"Cannot set property once" error when used with zone.js #531

Open
vigie opened this issue Oct 27, 2022 · 8 comments
Open

"Cannot set property once" error when used with zone.js #531

vigie opened this issue Oct 27, 2022 · 8 comments

Comments

@vigie
Copy link

vigie commented Oct 27, 2022

Description

When used with zone.js (all Angular applications), following error is thrown:

zone.js:1953 Uncaught TypeError: Cannot set property once of [object Object] which has only a getter
    at HTMLDivElement.addEventListener (zone.js:1953:42)
    at webcomponents-bundle.js:98:596
    at webcomponents-bundle.js:98:767
    at webcomponents-bundle.js:382:176

Steps to reproduce

Generate an Angular app and include this polyfill. Start the app.

I've verified that adding a once setter removes the error.

Expected behavior

Should not throw error

Actual behavior

Above error is thrown

Version

This was introduced in version 2.7 by this PR #469

Browsers affected

Only tested on Chrome

@mohit-sahore
Copy link

I am facing the same issue for the last 5 days. Any update on this?

@inspector-code
Copy link

The same problem. Are there any solutions?

@tappmax
Copy link

tappmax commented Dec 21, 2022

@tappmax
Copy link

tappmax commented Dec 22, 2022

Unfortunately, my current solution to this is to use the previous minor version.

@marlberm2014
Copy link

@tappmax downgrading to 2.6 also works for me. Hopefully this is fix in the next releases.

@mme-private
Copy link

Can confirm, problem is still actual.

@iamnaumovnikita
Copy link

Still actual

murrple-1 pushed a commit to murrple-1/rss_temple_ui that referenced this issue Sep 14, 2023
@Volftsun
Copy link

Same here, the bug still actual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants