When I first encountered the “The inferred type of ‘meta’ cannot be named without a reference to…” message in Storybook, I was caught off guard. I wanted a quick solution that would keep my TypeScript checks happy and my Storybook setup running smoothly. After a bit of trial and error, I discovered a simple fix that anyone can implement.
Thank me by sharing on Twitter 🙏
The inferred type of ‘meta’ cannot be named without a reference to ‘@storybook/test/node_modules/@vitest/spy’. This is likely not portable. A type annotation is necessary.
1. Spotting the Problem
I noticed that the error showed up whenever I used the satisfies Meta<typeof Kiosk> approach in my stories. TypeScript decided to infer everything about meta in a way that pulled in references to internal types from @vitest/spy, which caused unwanted complexity.
2. Removing the Culprit
To resolve this issue, I removed the satisfies syntax. Instead of allowing TypeScript to infer the type in a way that caused the error, I switched to explicitly annotating my meta object.
3. Using a Direct Annotation
I replaced:
HP 67XL Black High-Yield Ink Cartridge | Works with DeskJet 1255, 2700, 4100, Envy 6000, 6400 Series | Eligible for Instant Ink | 3YM57AN | Packaging May Vary
$35.89 (as of January 17, 2026 03:25 GMT +00:00 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)SanDisk 256GB Ultra microSDXC UHS-I Memory Card with Adapter - Up to 150MB/s, C10, U1, Full HD, A1, MicroSD Card - SDSQUAC-256G-GN6MA [New Version]
$29.99 (as of January 17, 2026 03:25 GMT +00:00 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)SanDisk 128GB Extreme microSDXC UHS-I Memory Card with Adapter - Up to 190MB/s, C10, U3, V30, 4K, 5K, A2, Micro SD Card - SDSQXAA-128G-GN6MA
$23.99 (as of January 17, 2026 03:25 GMT +00:00 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)const meta = {
...
} satisfies Meta<typeof MyComponent>;<br>with:
const meta: Meta<typeof MyComponent> = {
...
};This direct annotation stopped TypeScript from inferring references to extra types and got rid of the error message.
Conclusion
By swapping out satisfies for a straightforward type annotation, I resolved the inference issue and kept my Storybook stories functioning as intended. This small change made my setup cleaner and more predictable. I hope this helps anyone struggling with a similar error.


