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
{{ message }}
Repository navigation
bug: adoptedStyleSheets's mutable before chrome 99 #6326
TypeError: Cannot add property 0, object is not extensible
at Array.push (<anonymous>)
at HTMLElement.createShadowRoot (:8100/node_modules/.vite/deps/chunk-HEIOVAU6.js?v=d73e29c9:528)
at HTMLElement.__attachShadow (:8100/node_modules/.vite/deps/chunk-HEIOVAU6.js?v=d73e29c9:3706)
Interesting. From that same page on support, Stencil v4 is claimed to support iOS 14+, but adoptedStyleSheets didn't exist until iOS 16.4.
At the meantime, the ionic/[email protected] has use this version, 4.33.0, which will also impact the IONIC's compatibility.
Is there a specific component or thing that isn't working for you? I just checked Ionic's kitchen sink demo (8.6.2) on Chrome 99 from Browserstack, and everything works ok. A reproduction example would be helpful.
We face the same error. Unfortunately our customers won't all switch to newer Chrome/Edge versions.
The bug can be easily reproduced with the stencil cli scaffolding.
However, it only happens when I used the "production" mode. In dev mode it works fine
Activity
aeharding commentedon Jul 1, 2025
Hi! Can you upgrade chrome? That is 3 years old, lots of security issues.
Mutating the adoptedStyleSheets is better for performance is and MDN best practice.
liuwin7 commentedon Jul 2, 2025
Yes, it is indeed a very old version.
But as the description in https://stenciljs.com/docs/support-policy#browser-support, v4 has a lowest version chrome 79+.
If using the mutating adoptedStyleSheets, maybe you should modify the indication for the compatibility.
At the meantime, the
ionic/[email protected]has use this version, 4.33.0, which will also impact the IONIC's compatibility.https://github.com/ionic-team/ionic-framework/blob/v8.6.0/core/package.json
aeharding commentedon Jul 2, 2025
Interesting. From that same page on support, Stencil v4 is claimed to support iOS 14+, but adoptedStyleSheets didn't exist until iOS 16.4.
Is there a specific component or thing that isn't working for you? I just checked Ionic's kitchen sink demo (8.6.2) on Chrome 99 from Browserstack, and everything works ok. A reproduction example would be helpful.
johnjenkins commentedon Jul 2, 2025
@aeharding it checks for support and falls back to style tag
liuwin7 commentedon Jul 2, 2025
Chrome 99 is fine, because the mutable feature is shipped from Chrome 99 according to https://chromestatus.com/feature/5638996492288000 .
You can use Chrome 98 to reproduce it. @aeharding
petercmuc commentedon Jul 7, 2025
We face the same error. Unfortunately our customers won't all switch to newer Chrome/Edge versions.
The bug can be easily reproduced with the stencil cli scaffolding.
However, it only happens when I used the "production" mode. In dev mode it works fine
fix: contructable stylesheets with older immutable spec (chrome <99)
fix: contructable stylesheets with older immutable spec (chrome <99)
fix: contructable stylesheets with older immutable spec (chrome <99) (#…
chore(deps): update dependency @stencil/core to v4.36.1 (#30524)
chore(deps): update dependency @stencil/core to v4.36.1 (#30524)
chore(deps): update dependency @stencil/core to v4.36.1 (#30524)