storybook-addon-preview icon indicating copy to clipboard operation
storybook-addon-preview copied to clipboard

Plugin doesn't work with Storybook 7

Open steveworkman opened this issue 1 year ago • 0 comments

Following the instructions in the readme, I can't get the plugin to register.

Using:

module.exports = {
    addons: [
        "storybook-addon-preview/register"
    ],
};

The whole storybook fails to load and fails when the plugin tries to .default.getConfig()

When using the ESM version:

module.exports = {
    addons: [
        "storybook-addon-preview/esm/register"
    ],
};

The plugin seems to load, but the panels are never loaded even with a single component and the code in the example, the panel does not load.

We're using storybook 7.6.12 for all code and addons. From some investigation it looks like some storybook 6 dependencies are being loaded. I don't know if this is the cause but it's not working

steveworkman avatar Feb 15 '24 12:02 steveworkman