-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
When installing this package because of react.email recommendation (needed to polyfill web streams for safari) for the render function they offer.
When installed into nextjs project this happens:
AssertionError [ERR_ASSERTION]: false == true
at extractBody (node:internal/deps/undici/undici:5986:7)
at new Response (node:internal/deps/undici/undici:9724:41)
at new NextResponse (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\.next\server\chunks\node_modules_next_11760126._.js:8865:9)
at GET (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\.next\server\chunks\[root-of-the-server]__80bb4c51._.js:79:12)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:59:14)
at AppRouteRouteModule.do (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\next-server\app-route-turbo.runtime.dev.js:5:38861)
at C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\next-server\app-route-turbo.runtime.dev.js:5:48879
at C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\server\lib\trace\tracer.js:169:36
at NoopContextManager.with (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:7062)
at ContextAPI.with (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:518)
at NoopTracer.startActiveSpan (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:18093)
at ProxyTracer.startActiveSpan (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:18854)
at C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\server\lib\trace\tracer.js:151:103
at NoopContextManager.with (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:7062)
at ContextAPI.with (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:518)
at NextTracerImpl.trace (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\server\lib\trace\tracer.js:151:28)
at C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\next-server\app-route-turbo.runtime.dev.js:5:48724
at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)
at C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\next-server\app-route-turbo.runtime.dev.js:5:46103
at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)
at C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\next-server\app-route-turbo.runtime.dev.js:5:46060
at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)
at AppRouteRouteModule.handle (C:\Users\alipe\Documents\vachasoftware\assertion-bug-minimal-reproduction\node_modules\next\dist\compiled\next-server\app-route-turbo.runtime.dev.js:5:46014) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}Ways to reproduce:
-
create default nextjs project using their website
-
install this package
-
import the package into the page.tsx (put "use client" on top)
-
and write a simple api route
-
call the route in page.tsx
-
gets the error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels