Skip to content

[Bug]: Automatically invalidate or version-key the .cache directory on Storybook upgrades #33711

@valentinpalkovic

Description

@valentinpalkovic

Describe the bug

When upgrading Storybook versions, users frequently encounter build errors or unexpected runtime behavior in the manager/preview UI. These issues are often resolved by manually deleting the node_modules/.cache/storybook directory.

Currently, the cache does not seem to be strictly tied to the specific version of Storybook installed, leading to "stale" cache issues that are difficult for users to debug.

Reproduction link

Reproduction steps

System

-

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Empathy Queue (prioritized)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions