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
"Error: Route /use-cache-cookies used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache
2171
2171
at CookiesReadingComponent (webpack:///app/use-cache-cookies/page.tsx:22:18)
"Error: Route /use-cache-cookies used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache
2189
2188
at a (<next-dist-dir>)
2190
2189
at b (<next-dist-dir>)
2191
-
at c (<next-dist-dir>)
2192
2190
To get a more detailed stack trace and pinpoint the issue, try one of the following:
2193
2191
- Start the app in development mode by running \`next dev\`, then open "/use-cache-cookies" in your browser to investigate the error.
2194
2192
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.
"Error: Route /use-cache-headers used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache
2382
2380
at HeadersReadingComponent (webpack:///app/use-cache-headers/page.tsx:21:18)
2383
-
at <unknown> (webpack:///<next-src>)
2384
2381
19 | // to ensure that this error is shown even when it's caught in userland.
"Error: Route /use-cache-headers used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache
2400
2397
at a (<next-dist-dir>)
2401
2398
at b (<next-dist-dir>)
2402
-
at c (<next-dist-dir>)
2403
2399
To get a more detailed stack trace and pinpoint the issue, try one of the following:
2404
2400
- Start the app in development mode by running \`next dev\`, then open "/use-cache-headers" in your browser to investigate the error.
2405
2401
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.
0 commit comments