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

Use named export of @storybook/addons #629

Merged
merged 1 commit into from
Feb 2, 2023
Merged

Use named export of @storybook/addons #629

merged 1 commit into from
Feb 2, 2023

Conversation

inokawa
Copy link
Contributor

@inokawa inokawa commented Aug 30, 2022

Hi,
In storybook v7, default export of @storybook/addons will be removed.
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#no-more-default-export-from-storybookaddons

When I run storycap in 7.0.0-alpha.26, I got this error. This PR would fix it.

register.js:8 Uncaught TypeError: addons_1.default.register is not a function
    at node_modules/storycap/lib/client/register.js (register.js:8:18)
    at __require (register.mjs:9:50)
    at node_modules/storycap/register.js (register.js:1:18)
    at __require (register.mjs:9:50)
    at register.js:1:18
node_modules/storycap/lib/client/register.js @ register.js:8
__require @ register.mjs:9
node_modules/storycap/register.js @ register.js:1
__require @ register.mjs:9
(匿名) @ register.js:1

@Quramy Quramy merged commit 07a879f into reg-viz:master Feb 2, 2023
@inokawa inokawa deleted the addons branch February 3, 2023 00:04
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

Successfully merging this pull request may close these issues.

2 participants