Next.js Discord

Discord Forum

Complains about using "Date.now()" without explicitly calling `await connection()`

Unanswered
Chippiparai posted this in #help-forum
Open in Discord
ChippiparaiOP
I started using
  experimental: {
    ppr: 'incremental',
    dynamicIO: true,
  },

and now get errors during build:

Error: Route "/[lang]/note/[handle]" used Date.now() instead of using performance or without explicitly calling await connection() beforehand.

Why is this now checked and how can I override this? I'm creating the year in the footer, so shouldn't cause hydration issues.

1 Reply

ChippiparaiOP
Ok, I got even more problems with dynamicIO : edge runtime not supported, export dynamic not supported ...
I wonder why the documentation talks me into using it. https://nextjs.org/docs/app/api-reference/functions/unstable_cache