TS 2740 类型 'ShadowRoot' 缺少类型 'Element' 中的以下属性:attributes、classList、className、clientHeight 以及其他 63 个
TS 2740 Type 'ShadowRoot' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 63 more
收到此错误。请参阅下面的代码。我是 TypeScript 和 Svelte 的新手。
const root = document.querySelector('overlay')?.shadowRoot
const app = new App({
target: root,
})
我该如何解决这个问题?
Typescript 给出了错误,因为这是一个错误。 Svelte 尚不支持此功能,但希望很快 Reference
收到此错误。请参阅下面的代码。我是 TypeScript 和 Svelte 的新手。
const root = document.querySelector('overlay')?.shadowRoot
const app = new App({
target: root,
})
我该如何解决这个问题?
Typescript 给出了错误,因为这是一个错误。 Svelte 尚不支持此功能,但希望很快 Reference