You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are you deploying your application? (if relevant)
next start
Describe the Bug
When I call res.revalidate("path-to-dynamic-route") on a dynamic route, I get the following error:
TypeError: res.hasHeader is not a function
at Object.setRevalidateHeaders (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\send-payload\revalidate-headers.js:8:37)
at NextNodeServer.sendRenderResult (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\next-server.js:380:34)
at NextNodeServer.pipe (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\base-server.js:418:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.fn (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\next-server.js:744:21)
at async Router.execute (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\router.js:252:36)
at async NextNodeServer.run (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\base-server.js:383:29)
at async NextNodeServer.handleRequest (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\base-server.js:321:20)
at async revalidate (C:\Users\pc\DEV\glugano\node_modules\next\dist\server\api-utils\node.js:288:13)
Expected Behavior
The route gets revalidated
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
Your reproduction link seems to not exists.
And I would suggest to setup your reproduction code by doing at least the first and second steps that you listed.
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
Verify canary release
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 18.8.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.0.5
eslint-config-next: 13.0.5
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next start
Describe the Bug
When I call res.revalidate("path-to-dynamic-route") on a dynamic route, I get the following error:
Expected Behavior
The route gets revalidated
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/A-Emile/glugano
To Reproduce
The text was updated successfully, but these errors were encountered: