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
@daneah I think you've found a bug. What's happening:
Storybook loads preview.js at runtime (in the browser)
This case should work for any valid JavaScript. So importing & re-exporting, functions that generate stuff, etc. are all "supported" (we don't actually support these things, but they won't break).
Storybook does static analysis on preview.js to determine sort order and project-level tags (in Node)
This case has all kinds of restrictions on what we can statically analyze. The old sort order code is probably wrapped with a try/catch and displays some kind of warning in the console that what you're doing is unsupported. The new tags code introduced in 8.1.0 is not wrapped.
The text was updated successfully, but these errors were encountered:
Originally posted by @shilman in #27418 (comment)
@daneah I think you've found a bug. What's happening:
Storybook loads
preview.js
at runtime (in the browser)This case should work for any valid JavaScript. So importing & re-exporting, functions that generate stuff, etc. are all "supported" (we don't actually support these things, but they won't break).
Storybook does static analysis on
preview.js
to determine sort order and project-level tags (in Node)This case has all kinds of restrictions on what we can statically analyze. The old sort order code is probably wrapped with a
try/catch
and displays some kind of warning in the console that what you're doing is unsupported. The new tags code introduced in8.1.0
is not wrapped.The text was updated successfully, but these errors were encountered: