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
Plugins extension that create custom code or modify existing code, will need to be updated and compared to the changes in the repository. Not updating the plugin extensions could break 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:
Install the upgraded version:
- yarn
- npm
yarn
npm install
💡 TipIf the operation doesn't work, try removing your
yarn.lock
orpackage-lock.json
. If that doesn't help, remove thenode_modules
folder as well and try again.
Generate TypeScript typings
Generate your TypeScript typings by running the following command in the terminal:
- yarn
- npm
yarn strapi ts:generate-types
npm run strapi ts:generate-types
Rebuild the application
Run the following command in your project root directory to rebuild Strapi's admin panel:
- yarn
- npm
yarn build
npm run build
Restart the application
Run the following command in your project root directory to restart the application:
- yarn
- npm
yarn develop
npm run develop