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

StoryBook Performance Add-on not compatible with the latest Storybook Version 7.0

Open nishaddesai opened this issue 1 year ago • 4 comments

The performance add is not compatible with Storybook v7.0 and so fails to run.

nishaddesai avatar Apr 25 '23 15:04 nishaddesai

is there any advancement in resolving this issue 🤔

Zaid944 avatar Jun 26 '23 15:06 Zaid944

I am trying to use this package with storybook v7 but throwing the error Package subpath './package.json' is not defined by "exports", any fixes for this???

Zaid944 avatar Jun 26 '23 15:06 Zaid944

@Zaid944 I was able to solve this by removing the wrapping call to getAbsolutePath() from the config in main.js:

addons: [
        getAbsolutePath("@storybook/addon-essentials"),
        getAbsolutePath("@storybook/addon-links"),
        getAbsolutePath("@storybook/addon-interactions"),
        getAbsolutePath("storybook-css-modules-preset"),
        "storybook-addon-performance",
    ],

booleanBoy avatar Aug 09 '23 13:08 booleanBoy

Fix for me was rewriting "storybook-addon-performance/register", in main js to "storybook-addon-performance",

mnik01 avatar Oct 08 '23 01:10 mnik01