This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Commit 4b0f231
committed
Fix React 19 crash by using classic JSX transform
Storybook's manager maps `react` to its bundled React via globals, but
`react/jsx-runtime` is not mapped and resolves to the project's React,
causing a dual-React crash in React 19 projects. Switch from automatic
JSX transform to classic (`React.createElement`) so all React usage
goes through the mapped `react` import.1 parent 468ecaf commit 4b0f231
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments