Today i updated from Vaadin 24.1.4 to 24.2.1.
Since my update, vite logs the following errors to the console:
ERROR(TypeScript) Interface ‘Document’ incorrectly extends interface ‘DocumentOrShadowRoot’.
Types of property ‘adoptedStyleSheets’ are incompatible.
The type ‘readonly CSSStyleSheet’ is ‘readonly’ and cannot be assigned to the mutable type ‘CSSStyleSheet’.
FILE C:/intellij_workspace/XXX/Application/gui/main/node_modules/typescript/lib/lib.dom.d.ts:6689:11
6687 | * [MDN Reference])
6688 | */
6689 | interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
| ^^^^^^^^
6690 | /**
6691 | * Sets or gets the URL for the current document.
6692 | *
ERROR(TypeScript) Interface ‘ShadowRoot’ incorrectly extends interface ‘DocumentOrShadowRoot’.
Types of property ‘adoptedStyleSheets’ are incompatible.
The type ‘readonly CSSStyleSheet’ is ‘readonly’ and cannot be assigned to the mutable type ‘CSSStyleSheet’.
FILE C:/intellij_workspace/XXX/Application/gui/main/node_modules/typescript/lib/lib.dom.d.ts:21187:11
[TypeScript] Found 2 errors. Watching for file changes.
vaadin:dance or deletion of node_modules did not help. The application can run despite the error, but its annoying. Any ideas how to get rid of the error?
i tried all the above, the error complaining about the incorrect interface extension still remains. Might that have somthing to do with the selection-grid dependency (3.0.1)? This is the only vaadin/frontend related dependency that i have in my pom files that is not standard vaadin. As said, this error was not present in 24.1.5 or before.