Fix typography docs page crashing with React error #130#1111
Merged
Conversation
Meta was imported from @storybook/addon-docs instead of @storybook/addon-docs/blocks, causing it to resolve as undefined at runtime.
Contributor
Hello cuervino,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Contributor
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list: |
JeanMarcMilletScality
approved these changes
May 20, 2026
Contributor
|
/bypass_author_approval |
Contributor
|
I have successfully merged the changeset of this pull request
Please check the status of the associated issue None. Goodbye cuervino. The following options are set: bypass_author_approval |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Typography docs page (
Style/Typography) was crashing with a minified React error #130 (element type is invalid — expected a string or class/function but gotundefined).The root cause:
typography.mdxwas importingMetafrom@storybook/addon-docs(the package root), which does not re-exportMetain Storybook 10. The component resolved asundefinedat runtime, causing the render to fail.Fix
Change the import to the correct subpath:
This is consistent with every other MDX file in the
stories/directory, which already use@storybook/addon-docs/blocks.Verification
Confirmed locally: the Typography page renders correctly after the fix.