jetbridge / jetbridge/cdk-nextjs

result.toUnchunkedString is not a function

Open
#235 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
362
Forks
50
PR merge metrics
No merged PRs in 30d

Description

I am using nextjs as part of a NestedStack. Please see my exact usage here: [https://github.com/AlexTech314/ProjectBase](https://github.com/AlexTech314/ProjectBase)

Upon completing deployment, the NextjsServer Lambda is throwing the following error in Cloudwatch logs:

`2024-11-16T02:36:08.461Z 300f0821-105f-4b1d-a88f-62ba3cac482a ERROR ⨯ TypeError: result.toUnchunkedString is not a function
at sendRenderResult (/var/task/node_modules/next/dist/server/send-payload.js:66:54)
at NextNodeServer.sendRenderResult (/var/task/node_modules/next/dist/server/next-server.js:581:50)
at NextNodeServer.pipeImpl (/var/task/node_modules/next/dist/server/base-server.js:975:24)
at async NextNodeServer.handleCatchallRenderRequest (/var/task/node_modules/next/dist/server/next-server.js:281:17)
at async NextNodeServer.runImpl (/var/task/node_modules/next/dist/server/base-server.js:945:9)
at async NextNodeServer.handleRequestImpl (/var/task/node_modules/next/dist/server/base-server.js:879:20)
at async fVe (index.mjs:66:10292)
at async Runtime.F7 [as handler] (index.mjs:66:10147)
`

I've found a recently opened and resolved issue in opennext-aws pertaining to a similar problem. https://github.com/opennextjs/opennextjs-aws/issues/507

I attempted to follow the app-router example laid out to no avail.

Is this a know issue?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.