Error AtlasError Documentation and Resolution

Next.js uncached data needs Suspense or caching

Uncached data was accessed outside of <Suspense>

With cacheComponents enabled, request-time asynchronous data must have a parent Suspense boundary so Next.js can render a fallback. Data intended for reuse instead needs an explicit caching design.

Uncached data was accessed outside of <Suspense>rendering
Uncached data was accessed outside of <Suspense>
  • A component awaits uncached database or fetch work outside Suspense.
  • Request parameters, cookies, headers, or connection are accessed before the boundary.
  1. Identify the component from the error overlay. For build-only failures, next build --debug-prerender can provide more useful stack traces.
  2. Move request-dependent work into a child component and put Suspense around that child with a meaningful loading fallback. A boundary returned after the await is too late.
  3. For data genuinely safe to reuse, consider a use cache function with appropriate cache lifetime and invalidation. Do not put private request cookies or user-specific data into a shared cache merely to suppress the error.
  4. Rebuild with cacheComponents enabled and verify both fallback behavior and fresh request-dependent content.
Next.js official documentation