Skip to content

Commit

Permalink
[docs] Add v5 peer dependencies in README (mui#23751)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrichardrinehart authored Nov 28, 2020
1 parent 5115f08 commit 85b3833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ yarn add @material-ui/core

```sh
// with npm
npm install @material-ui/core@next
npm install @material-ui/core@next @emotion/react @emotion/styled

// with yarn
yarn add @material-ui/core@next
yarn add @material-ui/core@next @emotion/react @emotion/styled
```

<details>
Expand Down
8 changes: 5 additions & 3 deletions docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,24 @@ The very first thing you will need to do is to update your dependencies.

### Update Material-UI version

You need to update your `package.json` to use the latest version of Material-UI.
You need to update your `package.json` to use the latest version of Material-UI and its peer dependencies.

```json
"dependencies": {
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@material-ui/core": "^5.0.0"
}
```

Or run

```sh
npm install @material-ui/core@next
npm install @material-ui/core@next @emotion/react @emotion/styled

or

yarn add @material-ui/core@next
yarn add @material-ui/core@next @emotion/react @emotion/styled
```

## Handling breaking changes
Expand Down

0 comments on commit 85b3833

Please sign in to comment.