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

Error when running yarn storybook #3

Closed
beepsoft opened this issue Feb 8, 2023 · 5 comments
Closed

Error when running yarn storybook #3

beepsoft opened this issue Feb 8, 2023 · 5 comments

Comments

@beepsoft
Copy link

beepsoft commented Feb 8, 2023

Hi,

great article https://prateeksurana.me/blog/react-component-library-using-storybook-6/!

I just tried to run yarn storybook and got this error:

storybookjs/storybook#11587

Do you have a way to make it work?

@beepsoft
Copy link
Author

beepsoft commented Feb 8, 2023

I tried upgrading to version 7 beta, and this way it seems to work:

npx storybook@next upgrade --prerelease

@prateek3255
Copy link
Owner

Yes you are right, was experimenting compiling with newer versions of rollup and just accidentally left the "type": "module" there. Removed it now, it should work as expected. Also will update the blog with StoryBook 7 once its stable. Thanks for pointing it out 🙌🏻

@Benjaminsson
Copy link

I would love to see an update to the blog post now that Storybook 7 is stable!

@prateek3255
Copy link
Owner

Hey @Benjaminsson thanks for pointing out I have updated the article with instructions for Storybook 7. I have also updated the code in the repo for the same and have updated rollup and all its plugins to their latest versions. Checkout the latest article here: https://prateeksurana.me/blog/react-component-library-using-storybook-7/

@Benjaminsson
Copy link

@prateek3255 You are awesome!!! Learning so much from this tutorial!

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

3 participants