web icon indicating copy to clipboard operation
web copied to clipboard

Storybook higher than 7.5.3 does not export globals in @storybook/preview/globals

Open jdevega opened this issue 1 year ago • 0 comments

https://github.com/modernweb-dev/web/blob/78abb0a92170f2e84b2cd9813e7b81adcfc0326b/packages/storybook-builder/src/index.ts#L4

The package @storybook/preview changed the named exports in the globals module. Up to 7.5.3 it was globals, but in 7.6.x they export globalPackages and globalsNameReferenceMap.

globalsNameReferenceMap is the export that matches the previous data exported by globals.

This is being addressed in the Storybook repository in this issue https://github.com/storybookjs/storybook/issues/25735

jdevega avatar Jan 24 '24 13:01 jdevega