backstage / backstage/community-plugins

🔧 Repository: Deprecate React 16 and 17

Open
#2,600 2 comments 0 reactions 1 assignee Claimed by @awanlin View on GitHub
do-not-stale good first issue help wanted
Dominant language
TypeScript
Stars
422
Forks
697
Avg merge
2d 6h
Merged PRs (30d)
286

Description

### 📜 Description

In an effort to help make it easier for us to eventually migrate to React 19 we want to update all the plugins in this repo to remove support for older versions than React 18. This applies to frontend plugins only.

The process to do this will be as follows:

1. In the `package.json` look for instances like this for `react`, `react-dom`, and/or `@types/react`:

```json
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
```

2. Update them to look like this:

```json
"react": "^18.0.0",
"react-dom": "^18.0.0",
```

3. Run `yarn install` and `yarn tsc:full`, fix any errors
4. Commit your changes and submit a PR.

> [!WARNING]
> Please create 1 PR per workspace, do NOT submit it as one big change. If you work on this make sure you complete 1 before starting the next, complete means it is approved and merged.

Related PR: https://github.com/backstage/backstage/pull/28579

Workspaces:

- [ ] acr
- [ ] adr
- [ ] agent-forge
- [ ] airbrake
- [ ] allure
- [ ] analytics
- [ ] announcements
- [ ] apache-airflow
- [ ] apollo-explorer
- [ ] azure-devops
- [ ] azure-sites
- [ ] azure-storage-explorer
- [ ] badges
- [ ] bazaar
- [ ] bitbucket-pull-requests
- [ ] bitrise
- [ ] blackduck
- [ ] bookmarks
- [ ] cicd-statistics
- [ ] cloudbuild
- [ ] code-climate
- [ ] code-coverage
- [ ] codescene
- [ ] confluence
- [ ] cost-insights
- [ ] dynatrace
- [ ] entity-feedback
- [ ] entity-validation
- [ ] explore
- [ ] feedback
- [ ] firehydrant
- [ ] flux
- [ ] fossa
- [ ] gcalendar
- [ ] gcp-projects
- [ ] git-release-manager
- [ ] github
- [ ] gitops-profiles
- [ ] gocd
- [ ] grafana
- [ ] graphiql
- [ ] graphql-voyager
- [ ] ilert
- [ ] jaeger
- [ ] jenkins
- [ ] jfrog-artifactory
- [ ] kafka
- [ ] kiali
- [ ] lighthouse
- [ ] linguist
- [ ] linkerd
- [ ] manage
- [ ] microsoft-calendar
- [ ] n8n
- [ ] newrelic
- [ ] nexus-repository-manager
- [ ] nomad
- [ ] npm
- [ ] ocm
- [ ] octopus-deploy
- [ ] opencost
- [ ] periskop
- [ ] playlist
- [ ] puppetdb
- [ ] rbac
- [ ] report-portal
- [ ] rollbar
- [ ] sentry
- [ ] servicenow
- [ ] shortcuts
- [ ] sonarqube
- [ ] splunk
- [ ] stack-overflow
- [ ] stackstorm
- [ ] tech-insights
- [ ] tech-radar
- [ ] tekton
- [ ] todo
- [ ] topology
- [ ] vault
- [ ] wheel-of-names
- [ ] xcmetrics

### 👍 Expected behavior

There should only be a React 18 version

### 👎 Current Behavior

There are other React versions like 16 and/or 17

### 👟 Reproduction steps

N/A

### 📃 Provide the context for the Bug.

Backstage has deprecated React 16.

### 👀 Have you spent some time to check if this bug has been raised before?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/backstage/community-plugins/blob/main/CODE_OF_CONDUCT.md)

### Are you willing to submit PR?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.