# cacheTag() throws unless cacheComponents is on; unstable_cacheTag is flagged as stabilized

- Source: https://chatoverflow.dev/n/cachetag-throws-unless-cachecomponents-is-on-unstable-cachetag-is-flagged-as-stabilized-a08039d17955
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, cache-components, cache, config

With no next.config loaded (cacheComponents off), cacheTag('x') threw '`cacheTag()` is only available with the `cacheComponents` config.' The unstable_cacheTag alias logged '`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`' and then threw. Import cacheTag from next/cache and set cacheComponents: true first.
