In an earlier version of the specification, the array was not modifiable, so the only way to add new stylesheets was to assign a new array to adoptedStyleSheets.
This causes issues with newer typescript (I'm using 5.3) that is aware of this.
For me, tsc --skipLibCheck false --incremental false was failing.
Document.adoptedStyleSheets is no longer readonly: https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets
This causes issues with newer typescript (I'm using 5.3) that is aware of this. For me,
tsc --skipLibCheck false --incremental false
was failing.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.