feat: React 19 / Grafana 13 compatibility#124
Conversation
Migrate eslint config to flat config format and update devDependencies to latest versions.
Update React and ReactDOM 18.x versions to ^18.3.0 to surface React 19 compatibility issues.
Fix webpack variable replacement in nested plugins files.
Add setupTests.d.ts for @testing-library/jest-dom types and remove @types/testing-library__jest-dom npm package.
…ct to 15.0.2 for React 19 compatibility
|
@vvkohut I would appreciate if you could take a look at this PR as I see now that you're assigned to the React 19 compatibility issue. |
|
Hi @jackw, thank you for your contribution on this — the work here is much appreciated. I've reviewed the PR, but given that the pipeline is currently failing and there are merge conflicts with the default branch, I'm not able to merge it as-is. To move this forward, I'll create a new PR based on your changes, fix the pipeline issues, and resolve the conflicts there. Thanks again for tackling this! |
|
@vvkohut no worries. If it's easier I can cherry pick these commits elsewhere. Let me know what works best for you. Happy to help where I can. |
|
I'll merge this PR. Also some additional changes related to Grafana 13 compatibility will be applied in #129 |
Closes #98
Summary
@grafana/plugin-uito 0.13.1 and@testing-library/reactto 15.0.2 — resolves thejsxRuntimeImportissue detected byreact-detect(zero issues remaining)create-plugin@7.1.3(migrations 004–007: ESLint flat config, React 18.3, webpack nested fix, testing-library types)dev-preview-react19Grafana image to the e2e CI matrixTest Plan
npx @grafana/react-detect@latestreportsno_action_requirednpm run buildpassesdev-preview-react19in CI🤖 Generated with Claude Code