-
Notifications
You must be signed in to change notification settings - Fork 106
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
Singleton client API not yet initialized, cannot call addArgTypesEnhancer
.
#255
Comments
This normally means there are more than one copy of See #254 for a recent fix to this project repo itself. |
To be clear, that was a fix for our own monorepo. It was an example of what you might need to also do in your own project as well. |
Update packages.json as https://github.com/eirslett/storybook-builder-vite/pull/254/files suggests, and run |
@olemarius were you able to find a solution for your issue? |
@IanVS let me give it another go today. I did get it to work with pnpm, but I got some errors from msw that I didn't have time to dig into. |
This did the trick! config.resolve.dedupe = ["@storybook/client-api"] Storybook 6.4.19 Thanks to #50 (comment) |
Which config file was that supposed to go in? |
@shadow7412 this should not be a problem in recent versions of storybook and @storybook/vite-builder. If you're having issues, it may mean that you have mismatched storybook versions, causing more than one @storybook/client-api to exist in your node_modules. |
I'm getting this error with Storybook 6.4.19 for Vue3 started and storybook-builder-vite v0.1.17
ClientApi.js:85 Uncaught Error: Singleton client API not yet initialized, cannot call
addArgTypesEnhancer
.Trying to get storybook to work with pnpm. After switching to pnpm and adding the following fix I got the error described:
The text was updated successfully, but these errors were encountered: