v4.11.4 to v4.14.0 migration guide
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:
- Upgrading the application dependencies
- Generating your TypeScript typings
- Reinitializing the application
Upgrading the application dependencies to 4.14.0​
Stop the server before starting the upgrade.
-
Upgrade all of the Strapi packages in
package.json
to4.14.0
:path: package.json{
// ...
"dependencies": {
"@strapi/strapi": "4.14.0",
"@strapi/plugin-users-permissions": "4.14.0",
"@strapi/plugin-i18n": "4.14.0"
// ...
}
} -
Save the edited
package.json
file. -
Run the install command:
Generate TypeScript typings​
Generate your TypeScript typings by running the following command in the terminal:
yarn" label="yarn">
yarn strapi ts:generate-types
npm" label="npm">
npm run strapi ts:generate-types