storybookjs/mdx2-csf

Missing dependency warning

bryanjtc opened this issue · 0 comments

Describe the bug
@babel/types is missing when using @storybook/mdx2-csf with storybook 6.5, vite-builder and yarn 3.2.3 during build.
This can be fixed by moving @babel/types to dependencies
To Reproduce
Steps to reproduce the behavior:

  1. Add @storybook/mdx2-csf as a dependency
  2. Enable the feature flag previewMdx2 in storybook config

Expected behavior
No error
Screenshots
image

Additional context
Add any other context about the problem here.