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
Describe the bug
Storysource is unable to parse Flow type annotations. When the type annotations are removed or by wrapping it around a flow comment the error will go away.
Storysource is dependant on parsers from Prettier and works now with prettier/parser-babylon and prettier/parser-typescript. For Flow they have a prettier/parser-flow.
It's very easy to add a support for this, would you like to create a PR ?
@igor-dv Babel v7 seems to now support Flow syntax so maybe this is not actually needed, but PR #4971 has been created to add support for Flow as an option.
Describe the bug
Storysource is unable to parse Flow type annotations. When the type annotations are removed or by wrapping it around a flow comment the error will go away.
Code snippets
Error message from Console
Flow example resulting in error
System:
"babel-core": "6.26.3",
Additional context
webpack.config.js
The text was updated successfully, but these errors were encountered: