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

Fix missing dependency warning by upgrading to latest @storybook/mdx2-csf RC #19579

Closed
wants to merge 1 commit into from

Conversation

acusti
Copy link
Contributor

@acusti acusti commented Oct 22, 2022

when i run storybook dev -p 6006 using react-vite and v7.0.0-alpha.40, i get the following logs:

11:10:12 AM [vite] ✨ new dependencies optimized: @storybook/react-vite, @storybook/react/preview, @storybook/addon-docs/preview, @storybook/addon-actions/preview, @storybook/addon-backgrounds/preview, ...and 4 more
11:10:12 AM [vite] ✨ optimized dependencies changed. reloading
11:10:13 AM [vite] ✨ new dependencies optimized: @storybook/theming
11:10:13 AM [vite] ✨ optimized dependencies changed. reloading
11:10:13 AM [vite] Internal server error: @storybook/mdx2-csf tried to access @babel/types, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: @babel/types
Required by: @storybook/mdx2-csf@npm:0.1.0-next.0 (via /Users/me/my-repo/.yarn/cache/@storybook-mdx2-csf-npm-0.1.0-next.0-b24538f9dc-2651dc9f01.zip/node_modules/@storybook/mdx2-csf/dist/cjs/)

issue from mdx2-csf: storybookjs/mdx2-csf#18
PR from mdx2-csf: storybookjs/mdx2-csf#19

@JReinhold
Copy link
Contributor

Closing as duplicate of #19600

@JReinhold JReinhold closed this Oct 24, 2022
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