Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nishaddesai opened this issue Apr 25, 2023 · 4 comments

Comments

@nishaddesai
Copy link

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

@Zaid944
Copy link

Zaid944 commented Jun 26, 2023

is there any advancement in resolving this issue 🤔

@Zaid944
Copy link

Zaid944 commented Jun 26, 2023

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
Copy link

@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
Copy link

mnik01 commented Oct 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants