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
This is presumably an issue with react-docgen-typescript/react-docgen-typescript-plugin, but thought it was worth highlighting here since the same code works fine in Storybook v6 and v7 beta 45. (I assume the issue is introduced here: #21095)
The text was updated successfully, but these errors were encountered:
Describe the bug
Storybook 7 beta49 generates javascript containing things like:
which cause the browser to fail parsing with
Unexpected keyword 'default'. Expected a closing '}' at the end of a block statement.
It occurs when writing default exports like this -
but can be avoided by separating out the export:
To Reproduce
Checkout https://github.com/jdelStrother/storybook-snapshots, run
yarn && yarn storybook
, view in browserSystem
Additional context
This is presumably an issue with react-docgen-typescript/react-docgen-typescript-plugin, but thought it was worth highlighting here since the same code works fine in Storybook v6 and v7 beta 45. (I assume the issue is introduced here: #21095)
The text was updated successfully, but these errors were encountered: