default error to null (not undefined) to be consistent on client and server
MODIFY
packages/app-utils/src/renderer/render/page.ts
packages/app-utils/src/renderer/render/page.ts
@@ -21,7 +21,7 @@ export default async function render_page(
context: any,
options: RenderOptions,
status: number = 200,
- error?: Error
+ error: Error | null = null
): Promise<{
status: number,
body: string,

default error to null (not undefined) to be consistent on client and server