Open lyleunderwood opened 2 years ago
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Not stale. storyStoreV7
is not respecting babel config, and this is blocking us from migrating.
Looks like https://github.com/storybookjs/storybook/pull/21859 would also fix this issue.
@lyleunderwood can you check if v7.1.0-alpha.9 has fixed this issue? For reference:
Describe the bug
It seems like
storyStoreV7
depends on thisbabelParse
utility that has a hardcoded configuration:https://github.com/storybookjs/storybook/blob/cf4b3c77bad29c941b91620bcf84aeb79cbb33c9/lib/csf-tools/src/babelParse.ts#L6-L12
Because of this, Flow-specific syntax cannot be supported without getting a parser error from babel. I've confirmed that if I replace
typescript
withflow
in the above code, I no longer get the parser error.To Reproduce
Run storybook with any story files using flow-specific syntax.
System
Additional context N/A