-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
ref type broken for HTMLElement #6550
Comments
This is not an error, it's actually by design.
declare module '@vue/reactivity' {
export interface RefUnwrapBailTypes {
runtimeDOMBailTypes: Node | Window
}
} So If you want to use the |
My bad, this error actually happens when using: import { ref } from 'vue' I was not aware that this is a different implementation as Should I open a new issue for this or just update the example? |
Thanks for looking into it! I assume the error happening in our code stems from using jsdom inside our tests. We will investigate further. |
Vue version
3.2.27
Link to minimal reproduction
https://codesandbox.io/s/stoic-lovelace-vjtqk6?file=/src/index.ts
Steps to reproduce
Note the error on line 4 of
index.ts
.What is expected?
ref<HTMLElement | null>(null)
is assignable to a variable of typeRef<HTMLElement | null>
.What is actually happening?
Type Error:
System Info
No response
Any additional comments?
Seems like a similar error was fixed in a previous version.
The text was updated successfully, but these errors were encountered: