atlassian-labs / storybook-addon-performance

🚧 A storybook addon to help better understand and debug performance for React components.
https://storybook-addon-performance.netlify.com
Other
652 stars 32 forks source link

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

Open nishaddesai opened 1 year ago

nishaddesai commented 1 year ago

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

Zaid944 commented 1 year ago

is there any advancement in resolving this issue 🤔

Zaid944 commented 1 year ago

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???

booleanBoy commented 1 year ago

@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",
    ],
mnik01 commented 11 months ago

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