-
Notifications
You must be signed in to change notification settings - Fork 31
Frontend: Outdated React and Eslint #1810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am seeing the same issue. Any updates? |
Hello, I'm afraid it's not currently possible to update to React 19 in your frontend datasource. Your plugin doesn't own the version of React it uses - the Grafana application shares its version of React with your plugin in the browser at runtime. As such if you did manage to update it in your plugin you would end up with a development environment that didn't match the runtime dependencies and would likely experience issues. For plugins to use React 19 it will also require Grafana core to be updated to React 19 which isn't a straight forward task but something we are trying to figure out. Regarding Eslint 9, it is possible to update it but it's a manual process that requires bumping all the eslint dependencies and then rewriting the eslint config as a flat config. We are in the process of solving this as v8 is deprecated and we'd like to get plugin developers off it. Hopefully we'll get to the remaining work to make it simple to update Eslint soon. |
What happened?
I cannot update React and eslint to keep my frontend datasource up to date because the grafana npm packages require older versions. I am getting this error when attempting to update react (I removed my specific pull request info and links):
and the following when trying to update
eslint
What did you expect to happen?
I expect to be able to update
react
andeslint
, but cannot do to an issue with legacy peer dependenciesDid this work before?
I have normally been able to update packages
How do we reproduce it?
eslint
to version9.21.0
andreact
to version19.0.0
Is the bug inside a dashboard panel?
No
Environment (with versions)?
Grafana:
OS: Mac
Browser: Chrome
NPM: 10.8.3
@grafana/eslint-config: "^8.0.0",
@grafana/plugin-e2e: "^1.18.2",
@grafana/tsconfig: "^2.0.0"
Grafana platform?
Kubernetes
Datasource(s)?
Custom backend datasource development
The text was updated successfully, but these errors were encountered: