[[email protected]][Wrong Usage] pageContext.documentProps isn't available in the browser. #824
-
How to disable this error?
my _default.page.server.js import { escapeInject } from 'vite-plugin-ssr/server'
export function render() {
// Note that `div#root` is empty
return escapeInject`<html>
<body>
<div id="root"></div>
</body>
</html>`
} I only want a SPA so everything is rendered on client, so _default.page.server.js isn't even necessary but I error out without it |
Beta Was this translation helpful? Give feedback.
Answered by
brillout
Apr 26, 2023
Replies: 1 comment
-
Don't try to access |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brillout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't try to access
pageContext.documentProps
.