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: Attempting to configurable attribute of unconfigurable property on a connected TV browser. #558

Open
5 tasks
mateoperez opened this issue Aug 22, 2023 · 2 comments

Comments

@mateoperez
Copy link

Description

I'm trying to use the polyfill on a connected TV using an old browser:
image

User Agent:

"YouViewHTML/1.0 AppleWebKit/538.1 (Huawei Technologies Co., Ltd; DN360T.01.02.P; 001; CDS/60.48.91; API/3.2.0; PS/3.8.128) (+HTML+MHEG+IPCMC+DASH+DRM)"

And when the polyfill tries to add a get and a set to any html tag it raises an error:
TypeError: Attempting to configurable attribute of unconfigurable property.

image

Example

This is the code I'm using, only core-js and webcomponents polyfills.

import 'core-js/actual/map';
import 'core-js/actual/weak-map';
import 'core-js/actual/set';
import 'core-js/actual/promise';
import 'core-js/actual/array';
import 'core-js/actual/string';
import 'core-js/actual/number';
import 'core-js/actual/object';
import 'core-js/actual/symbol';
import 'core-js/actual/function';
import '@webcomponents/webcomponentsjs';

Steps to reproduce

Launch the app.

Expected behavior

No error is thrown

Actual behavior

TypeError: Attempting to configurable attribute of unconfigurable property.

Version

@webcomponents/[email protected]

Browsers affected

"YouViewHTML/1.0 AppleWebKit/538.1 (Huawei Technologies Co., Ltd; DN360T.01.02.P; 001; CDS/60.48.91; API/3.2.0; PS/3.8.128) (+HTML+MHEG+IPCMC+DASH+DRM)"
  • Chrome
  • Firefox
  • Edge
  • Safari
  • IE 11
@trusktr
Copy link

trusktr commented Sep 1, 2023

If the polyfill relies on configuring properties and they are not configurable, I'm not sure there's a solution unless the polyfill implementation can be somehow fundamentally changed to do something else. Not sure it's possible.

Any luck with this other polyfill?

https://github.com/ungap/custom-elements

@mateoperez
Copy link
Author

I've tried that one (https://github.com/ungap/custom-elements) and the error is in the same line (when it is trying to use the native defineProperty):
image
It is trying to change the constructor for the HTMLElementPrototype.
image

The error I had with the webcomponentsjs polyfill was when it was trying to modify the textContent from any html element.
image

image

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

2 participants