Skip to content

fix: React 19 / Grafana 13 compatibility#172

Open
jackw wants to merge 2 commits intoHarperFast:mainfrom
jackw:feat/react-19-migration
Open

fix: React 19 / Grafana 13 compatibility#172
jackw wants to merge 2 commits intoHarperFast:mainfrom
jackw:feat/react-19-migration

Conversation

@jackw
Copy link
Copy Markdown

@jackw jackw commented Apr 3, 2026

Summary

  • Bumps @grafana/plugin-ui from 0.12.1 to 0.13.1, which resolves the bundled react/jsx-runtime issue detected by @grafana/react-detect (jsxRuntimeImport pattern)
  • Pins the e2e-version CI action to v1.2.1 and opts in to the React 19 Grafana preview image in the E2E matrix

You can find more information about this in our blog post here.

Verification

@grafana/react-detect reports 0 issues after the dependency bump:

"totalIssues": 0, "status": "no_action_required"

Test plan

  • CI E2E matrix runs against both React 18 and React 19 Grafana preview images
  • Build passes (npm run build)

🤖 Generated with Claude Code

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​grafana/​plugin-ui@​0.12.1 ⏵ 0.13.195 +110084 -188 -4100

View full report

@jackw
Copy link
Copy Markdown
Author

jackw commented Apr 7, 2026

@cap10morgan I'm sorry to ping you but I would appreciate you taking a look at this PR. Grafana is planning to move to React 19 and your plugin was marked as incompatible due to the version of @grafana/plugin-ui it uses. By bumping the dep to latest version fixes the issues. I've also included the react-19 dev image in the CI e2e matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant