Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 4b0f231

Browse files
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

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@accesslint/storybook-addon",
3-
"version": "0.6.4",
3+
"version": "0.6.5",
44
"description": "Catch accessibility violations in your Storybook stories as you develop",
55
"license": "MIT",
66
"publishConfig": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target": "ES2022",
44
"module": "ESNext",
55
"moduleResolution": "bundler",
6-
"jsx": "react-jsx",
6+
"jsx": "react",
77
"strict": true,
88
"esModuleInterop": true,
99
"skipLibCheck": true,

0 commit comments

Comments
 (0)