Skip to content

Commit

Permalink
fix: client type error (#9289)
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho authored Jul 22, 2022
1 parent 6098457 commit b82ddfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/client/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const codeframeRE = /^(?:>?\s+\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm

// Allow `ErrorOverlay` to extend `HTMLElement` even in environments where
// `HTMLElement` was not originally defined.
const { HTMLElement = class {} } = globalThis
const { HTMLElement = class {} as typeof globalThis.HTMLElement } = globalThis
export class ErrorOverlay extends HTMLElement {
root: ShadowRoot

Expand Down

0 comments on commit b82ddfb

Please sign in to comment.