Skip to main content

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
Caution

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

☑️ Prerequisites

Stop the server before starting the upgrade.

  1. Upgrade all of the Strapi packages in package.json to 4.14.0:

    path: package.json
    {
    // ...
    "dependencies": {
    "@strapi/strapi": "4.14.0",
    "@strapi/plugin-users-permissions": "4.14.0",
    "@strapi/plugin-i18n": "4.14.0"
    // ...
    }
    }
  2. Save the edited package.json file.

  3. Run the install command:

    Install the upgraded version:

    yarn
    💡 Tip

    If the operation doesn't work, try removing your yarn.lock or package-lock.json. If that doesn't help, remove the node_modules folder as well and try again.

Generate TypeScript typings

Generate your TypeScript typings by running the following command in the terminal:

yarn strapi ts:generate-types

Rebuild the application

Run the following command in your project root directory to rebuild Strapi's admin panel:

yarn build

Restart the application

Run the following command in your project root directory to restart the application:

yarn develop