From 5c833834b2646b7a615de766a830f23524e4f1a6 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Fri, 10 Sep 2021 18:31:28 +1000 Subject: [PATCH] Add warning if find old `stories.json` https://github.com/storybookjs/storybook/pull/16004/files/b05020ce5c1ca9f12cc5c0f7bd4e2aa8d20d7102#r705834795 --- lib/api/src/modules/stories.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/api/src/modules/stories.ts b/lib/api/src/modules/stories.ts index 33ad5c1675c..78224e84013 100644 --- a/lib/api/src/modules/stories.ts +++ b/lib/api/src/modules/stories.ts @@ -11,6 +11,7 @@ import { STORY_SPECIFIED, } from '@storybook/core-events'; import deprecate from 'util-deprecate'; +import { logger } from '@storybook/client-logger'; import { getEventMetadata } from '../lib/events'; import { @@ -355,6 +356,7 @@ export const init: ModuleFn = ({ // We can only do this if the stories.json is a proper storyIndex if (storyIndex.v !== 3) { + logger.warn(`Skipping story index with version v${storyIndex.v}, awaiting SET_STORIES.`); return; }