You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FIXME: we should get this from the project config somehow?
plugins: [
'jsx',
'typescript',
['decorators',{decoratorsBeforeExport: true}],
'classProperties',
],
Because of this, Flow-specific syntax cannot be supported without getting a parser error from babel. I've confirmed that if I replace typescript with flow in the above code, I no longer get the parser error.
To Reproduce
Run storybook with any story files using flow-specific syntax.
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!
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: