|
| 1 | +--- |
| 2 | +title: Migrate from 4.11.4 to 4.14.0 |
| 3 | +displayed_sidebar: devDocsSidebar |
| 4 | +description: Learn how you can migrate your Strapi application from 4.14.0 to 4.14.0. |
| 5 | +--- |
| 6 | + |
| 7 | +import PluginsCaution from '/docs/snippets/migrate-plugins-extension-caution.md' |
| 8 | +import BuildCommand from '/docs/snippets/build-npm-yarn.md' |
| 9 | +import DevelopCommand from '/docs/snippets/develop-npm-yarn.md' |
| 10 | +import InstallCommand from '/docs/snippets/install-npm-yarn.md' |
| 11 | + |
| 12 | +# v4.11.4 to v4.14.0 migration guide |
| 13 | + |
| 14 | +The Strapi v4.11.4 to v4.14.0 migration guide upgrades v4.11.4 to v4.14.0. Strapi v4.14.0 migrated the `strapi/strapi` package to TypeScript and introduced a new `@strapi/typings` package. This migration is required if you have used TypeScript in your project prior to 4.14.0. The migration guide consists of: |
| 15 | + |
| 16 | +- Upgrading the application dependencies |
| 17 | +- Generating your TypeScript typings |
| 18 | +- Reinitializing the application |
| 19 | + |
| 20 | +<PluginsCaution components={props.components} /> |
| 21 | + |
| 22 | + |
| 23 | +## Upgrading the application dependencies to 4.14.0 |
| 24 | + |
| 25 | +:::prerequisites |
| 26 | +Stop the server before starting the upgrade. |
| 27 | +::: |
| 28 | + |
| 29 | +1. Upgrade all of the Strapi packages in `package.json` to `4.14.0`: |
| 30 | + |
| 31 | + ```json title="path: package.json" |
| 32 | + { |
| 33 | + // ... |
| 34 | + "dependencies": { |
| 35 | + "@strapi/strapi": "4.14.0", |
| 36 | + "@strapi/plugin-users-permissions": "4.14.0", |
| 37 | + "@strapi/plugin-i18n": "4.14.0" |
| 38 | + // ... |
| 39 | + } |
| 40 | + } |
| 41 | + ``` |
| 42 | + |
| 43 | +2. Save the edited `package.json` file. |
| 44 | + |
| 45 | +3. Run the install command: |
| 46 | + <InstallCommand components={props.components} /> |
| 47 | + |
| 48 | +## Generate TypeScript typings |
| 49 | + |
| 50 | +Generate your TypeScript typings by running the following command in the terminal: |
| 51 | + |
| 52 | +<Tabs groupId="yarn-npm"> |
| 53 | + |
| 54 | +<TabItem value="yarn" label="yarn"> |
| 55 | + |
| 56 | +```bash |
| 57 | +yarn strapi ts:generate-types |
| 58 | +``` |
| 59 | + |
| 60 | +</TabItem> |
| 61 | + |
| 62 | +<TabItem value="npm" label="npm"> |
| 63 | + |
| 64 | +```bash |
| 65 | +npm run strapi ts:generate-types |
| 66 | +``` |
| 67 | + |
| 68 | +</TabItem> |
| 69 | + |
| 70 | +</Tabs> |
| 71 | + |
| 72 | +## Rebuild the application |
| 73 | + |
| 74 | +<BuildCommand components={props.components} /> |
| 75 | + |
| 76 | +## Restart the application |
| 77 | + |
| 78 | +<DevelopCommand components={props.components} /> |
0 commit comments