Replies: 2 comments 4 replies
-
|
How could I repro this? I have a create-next-app fresh, w/ import { NextRequest, NextResponse } from "next/server";
export async function GET(request: NextRequest) {
const buffer = Buffer.from("Hello World", "utf-8");
return new Response(buffer, {
headers: {
"Content-Type": "text/plain",
"Content-Length": buffer.length.toString(),
},
});
}Builds fine in 15.5.6 and 16 |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
let a script running to upgrade one dependency at a time and build (like a weird (the upgrades are cumulative, if it pass, upgrade the next and build) EDIT: read the logs from my hacky script wrong... the failure actually occurs on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I had some routes.ts returning
new Response( buffer_array, { ...andnew Reponse( read_stream, {......Now both body values, using either
ResponseorNextResponse, cause:or
If I follow the type for BodyInit, i can see ReadableStream
(still collecting info, but posting in case this is not some mistake on our side)
Additional information
builds codebase without errors:
diff versions before the upgrade that broke the build

Example
No response
Beta Was this translation helpful? Give feedback.
All reactions