小编Shu*_*ade的帖子

NextJs 类型错误

TypeError: responseHeaders.getSetCookie is not a function
    at new ResponseCookies (webpack-internal:///(app-metadata-route)/./node_modules/next/dist/compiled/@edge-runtime/cookies/index.js:213:47)
    at new NextResponse (webpack-internal:///(app-metadata-route)/./node_modules/next/dist/server/web/spec-extension/response.js:40:22)
    at GET (webpack-internal:///(app-metadata-route)/./node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js?page=%2Ffavicon.ico%2Froute&isDynamic=0!./src/app/favicon.ico?__next_metadata_route__:15:10)
    at G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:62505
    at G:\groove-hub\node_modules\next\dist\server\lib\trace\tracer.js:121:36
    at NoopContextManager.with (G:\groove-hub\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:7057)
    at ContextAPI.with (G:\groove-hub\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:516)
    at NoopTracer.startActiveSpan (G:\groove-hub\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:18086)
    at ProxyTracer.startActiveSpan (G:\groove-hub\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:18847)
    at G:\groove-hub\node_modules\next\dist\server\lib\trace\tracer.js:110:107
    at NoopContextManager.with (G:\groove-hub\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:7057)
    at ContextAPI.with (G:\groove-hub\node_modules\next\dist\compiled\@opentelemetry\api\index.js:1:516)
    at NextTracerImpl.trace (G:\groove-hub\node_modules\next\dist\server\lib\trace\tracer.js:110:32)
    at G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:56147
    at AsyncLocalStorage.run (node:async_hooks:330:14)
    at Object.wrap (G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:37057)
    at G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:53934
    at AsyncLocalStorage.run (node:async_hooks:330:14)
    at Object.wrap (G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:36635)
    at G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:53896
    at AsyncLocalStorage.run (node:async_hooks:330:14)
    at eD.execute (G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:53870)
    at eD.handle (G:\groove-hub\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:63748)
    at doRender (G:\groove-hub\node_modules\next\dist\server\base-server.js:1217:56)
    at cacheEntry.responseCache.get.incrementalCache.incrementalCache (G:\groove-hub\node_modules\next\dist\server\base-server.js:1446:34)
    at ResponseCache.get (G:\groove-hub\node_modules\next\dist\server\response-cache\index.js:53:26) …
Run Code Online (Sandbox Code Playgroud)

typeerror typescript next.js

2
推荐指数
1
解决办法
765
查看次数

标签 统计

next.js ×1

typeerror ×1

typescript ×1