-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Can't use storyStoreV7 with Flow #17024
Comments
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. |
Looks like #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:storybook/lib/csf-tools/src/babelParse.ts
Lines 6 to 12 in cf4b3c7
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
The text was updated successfully, but these errors were encountered: