Skip to content

Commit

Permalink
Added upgrade guide fix for HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Oct 28, 2024
1 parent 82e4f7b commit 19e5a29
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/source/upgrade-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,27 @@ Also in the Storybook configuration {file}`.storybook/main.js`.
```{versionadded} @plone/registry 3.0.0-alpha.0
```

### Add missing overrides to projects in `package.json`

This will fix some issues with Hot Module Reload in projects.
It's required from Volto `18.0.0-alpha.47` otherwise, the site breaks in development mode.
Add this object to the `pnpm` key in your project `package.json`:

```
"pnpm": {
"overrides": {
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"react-refresh": "^0.14.2"
}
},
```

```{versionadded} Volto 18.0.0-alpha.47
```

```{versionadded} @plone/registry 3.0.0-alpha.0
```

### Deprecation notices for Volto 18

#### `@plone/generator-volto`
Expand Down

0 comments on commit 19e5a29

Please sign in to comment.