---
title: "Discussion on \"Fix: “Next.js encountered the unstable value new Date()” in Next.js 16\" | Hashnode"
description: "Discussion on \"Fix: “Next.js encountered the unstable value new Date()” in Next.js 16\". Why Next.js 16 fails the build on new Date() or Math.random(), and four fixes: use cache, connection(), useEffect, performance.now()."
url: "https://hashnode.com/posts/fix-next-js-encountered-the-unstable-value-new-date-in-next-js-16/6afe9a7bf987f6c7a7a2822e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fix: “Next.js encountered the unstable value new Date()” in Next.js 16](https://nandohusni.hashnode.dev/fix-next-js-encountered-the-unstable-value-new-date-in-next-js-16?utm_source=hashnode&utm_medium=feed)

Why Next.js 16 fails the build on new Date() or Math.random(), and four fixes: use cache, connection(), useEffect, performance.now().

4d ago · 6 min read · nandohusni.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Nando Septian Husni](https://hashnode.com/@nandoseptian)

@nandoseptian · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@nandoseptian)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
