Widgetbook Fixes Web Blank Canvas for Story Names Containing a Colon
Widgetbook stories with a colon in their name failed to render on web, leaving the canvas stuck on the welcome screen without any error. The cause was that package:path applies URL path rules on web, which treat the colon as a scheme separator and drop the parent path segment. The fix switches the five runtime files that build and resolve story paths to the POSIX path functions, since these navigation paths are logical rather than URLs. The change adds 86 lines and removes 12, mostly in a new test file covering five path-building cases. The fix was verified on Chrome and in the test suite, but not yet on Safari or Firefox.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in