vercel/next.js · error
"revalidateTag" without the second argument is now deprecate
Error message
"revalidateTag" without the second argument is now deprecated, add second argument of "max" or use "updateTag". See more info here: https://nextjs.org/docs/messages/revalidate-tag-single-arg
What it means
Error ""revalidateTag" without the second argument is now deprecated, add second argument of "max" or use "updateTag". See more info here: https://nextjs.org/docs/messages/revalidate-tag-single-arg" thrown in vercel/next.js.
Source
Thrown at packages/next/src/server/web/spec-extension/revalidate.ts:35
import { createRevalidateDuringRenderError } from '../../use-cache/use-cache-messages'
import { validateAndNormalizeCacheLifeProfile } from '../../use-cache/cache-life-profile'
type CacheLifeConfig = {
expire?: number
}
/**
* This function allows you to purge [cached data](https://nextjs.org/docs/app/building-your-application/caching) on-demand for a specific cache tag.
*
* The second argument specifies a [`cacheLife`](https://nextjs.org/docs/app/api-reference/functions/cacheLife#reference) profile
* (e.g. `"max"`), or a `{ expire }` object. For immediate expiration in Server Actions, use
* [`updateTag`](https://nextjs.org/docs/app/api-reference/functions/updateTag) instead.
*
* Read more: [Next.js Docs: `revalidateTag`](https://nextjs.org/docs/app/api-reference/functions/revalidateTag)
*/
export function revalidateTag(tag: string, profile: string | CacheLifeConfig) {
if (!profile) {
console.warn(
'"revalidateTag" without the second argument is now deprecated, add second argument of "max" or use "updateTag". See more info here: https://nextjs.org/docs/messages/revalidate-tag-single-arg'
)
} else if (typeof profile === 'object') {
profile = validateAndNormalizeCacheLifeProfile(profile, { kind: 'inline' })
}
return revalidate(
[encodeHeaderSafe(tag)],
`revalidateTag(${JSON.stringify(tag)})`,
profile
)
}
/**
* This function allows you to update [cached data](https://nextjs.org/docs/app/building-your-application/caching) on-demand for a specific cache tag.
* This can only be called from within a Server Action to enable read-your-own-writes semantics.
*
* Read more: [Next.js Docs: `updateTag`](https://nextjs.org/docs/app/api-reference/functions/updateTag)
*/View on GitHub (pinned to 258b1c1bc0)
Solutions
- Call `revalidateTag(tag, "max")` or switch to `updateTag(tag)`.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/next/src/server/web/spec-extension/revalidate.ts:34 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/next.js@258b1c1bc0 (2026-08-19).
Data as JSON: /api/errors/0a1e1d6f0dfdf77b.
Report an issue: GitHub.