We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963c71a commit 48152bcCopy full SHA for 48152bc
packages/runtime-dom/src/nodeOps.ts
@@ -1,4 +1,4 @@
1
-const doc = document
+const doc = (typeof document !== 'undefined' ? document : null) as Document
2
const svgNS = 'http://www.w3.org/2000/svg'
3
4
export const nodeOps = {
0 commit comments