Catching up on Strapi v4 minor versions before Strapi 5

An old Strapi 4.x project should move to the final v4 release before the Strapi 5 major upgrade, with each skipped minor's notes read and tested. This page covers the path, the admin build fix and what drives effort.

On this page

Why a Strapi 4.x project should reach 4.26.2 before Strapi 5

If your Strapi 4.x project has to move to Strapi 5 and is several minor releases behind, the supported path is to reach the final v4 release, 4.26.2 of June 9, 2026, before you start the major upgrade. Strapi v4 reached end of life on April 30, 2026, and 4.26.2 is the last release that will ever be published for the v4 line, so it is the only v4 version that serves as a fixed starting point. Treat the v4 catch-up as its own phase with its own branch, its own test run and its own sign-off, separate from the Strapi 5 upgrade that follows.

Skipped minors matter because each one can carry changes to dependencies, admin build configuration, database handling and behavior that the upgrade tooling assumes is already in place. Moving directly from an old 4.x version to Strapi 5 means the codemods and data migration scripts run against a project state that Strapi's own migration path never tested. Step through each minor in order, read the release notes for every version you skip, and confirm the project builds and the admin panel loads after each step. Record which version you start from and which you finish on, because that record is what your team and any reviewer will ask for when the Strapi 5 upgrade begins.

Plan for the pace of the Strapi 5 line, which moves quickly. Strapi v5.58.0 was published on GitHub on October 14, 2026, and Strapi 5 minor releases have shipped roughly weekly, so the target you pick for Strapi 5 will be stale by the time the v4 catch-up is finished. Decide early which Strapi 5 version you will land on, confirm it against the Strapi GitHub releases page on the day you start, and build a short window into the plan for the later Strapi 5 minor and patch releases. Ask the team that owns the project to confirm the current Node.js version, database server and plugin inventory before the first v4 step, since those decide whether the Strapi 5 phase can start at all.

What changes between v4 minors and at the v5 boundary

This table lists each change that affects a Strapi v4 project on the way to Strapi 5, with its impact and the action to take. Read it before you start the minor upgrades so you know which changes arrive at the v5 boundary and which need work in your code and environment.

ChangeImpactAction needed
v4 end of life and final releasev4 reached end of life on April 30, 2026. The final release, 4.26.2 of June 9, 2026, receives no further updates.Plan to land on 4.26.2 before the major upgrade, and treat any later v4 security fix as unavailable.
Document Service API replaces Entity Service APIBack-end code calling the Entity Service API must be rewritten to use the Document Service API.Inventory custom services and controllers, then follow the Entity Service to Document Service migration topic.
API response format changesFront ends that read v4 response shapes may break after the upgrade.Use the Strapi-Response-Format: v4 header during the switch, then remove it client by client.
Upgrade tool codemodsCodemods rewrite many v4 code patterns but do not cover every custom change.Run the upgrade tool, review each codemod change in version control, and fix what it skips.
Data migration scripts on first Strapi 5 startStrapi 5 changes the database on first start, and the change cannot be reversed by downgrading.Back up the database first, and test the migration on a copy before production.
Supported database versionsPostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3 are supported. MongoDB and other NoSQL databases are not.Confirm your database versions now and upgrade them before the v5 boundary if they fall outside this list.
Node.js versionsStrapi 5 runs only on Active or Maintenance LTS Node.js versions.Check your Node.js version against the current LTS schedule and upgrade the runtime in a separate, tested step.
Plugins and custom admin codePlugin and admin customizations may break at the v5 boundary even when the core upgrade succeeds.Check plugin compatibility and admin code using the plugin and admin customization topics before the major upgrade.

How to step through the v4 minors, then the major upgrade

This sequence takes an older Strapi 4.x project to the final v4 release, 4.26.2, with a verified build and a database backup at each stage, so the v4 to v5 upgrade starts from a known good state.

  1. Inventory the current version and package.json

    The engineer responsible for the project records the Strapi version in package.json and in the installed packages, lists every Strapi plugin and any custom admin code, and notes the Node.js version and the database engine and version. Confirm that the Node.js version is one Strapi 5 supports and that the database meets the minimums in the installation requirements, since those gaps surface later. The step is done when the team has a written baseline they can compare against after each upgrade. Record the current Git commit as the first rollback point, because there is no automated downgrade path in Strapi.

  2. Back up the database and code before changing anything

    Before any version change, the operator takes a full database dump and stores it outside the project directory, along with the uploads folder and a tagged copy of the code. Strapi's migration documentation says to back up the database first because downgrading is not supported, so this backup is the only restore path. Test that the dump can be restored into a scratch database. The step is done when the restore test succeeds and the backup location is written into the upgrade runbook.

  3. Add missing admin dependencies explicitly

    If the admin build fails with Cannot find module react, the engineer adds react, react-dom, react-router-dom and styled-components to package.json with the versions the Strapi release expects, then reinstalls and rebuilds. Strapi's FAQ notes that patch upgrades across v4 minors can fail this way unless these packages are listed explicitly. Skip this step if the build succeeds without it. The step is done when the admin build completes locally and the lock file reflects the added packages.

  4. Read the release notes for each skipped minor

    The engineer reads the GitHub release notes for every v4 minor between the current version and 4.26.2, in order, and lists configuration changes, deprecations, plugin API changes and database notes that affect this project. Each note is mapped to a file or setting in the codebase. Plugins that are no longer maintained or do not match the new version are flagged for a decision. The step is done when the team has a reviewed list of required changes, with an owner for each item.

  5. Upgrade to 4.26.2 and verify the build and tests

    The engineer upgrades the Strapi packages to 4.26.2, which is the final v4 release, applies any changes from the release notes, and runs the admin build, the server start and the automated test suite on a staging copy. They also check that content entries, relations, media and user logins behave as before. Take a database backup at this point as a new rollback point. The step is done when the build passes, tests pass, and a manual smoke test of editor and public API flows is recorded.

  6. Run the v4 to v5 upgrade tool with dry runs on a copy

    On a copy of the production database and a branch of the code, the engineer runs the upgrade tool with codemods, reviews each change it proposes, and resolves the items listed in the breaking changes list. They repeat the dry run until the output matches the expected changes. The v5 data migration scripts run on the first start of Strapi 5, so the copy must start cleanly and show migrated content. Confirm the Node.js and database versions required by Strapi 5 before this step. The step is done when a full copy migration completes and the team has reviewed the diff.

  7. Rehearse the production cutover with a restore path

    The team schedules the production upgrade, freezes content editing for the window, and takes a fresh database backup immediately before the change. They run the same steps used on the copy, then verify content, the API responses and the admin panel. If verification fails, the team restores the pre-upgrade database and the tagged code, since Strapi 5 cannot be downgraded in place. The step is done when the production checks are signed off and the backup used for rollback is retained until the owners agree the upgrade is stable.

Fixing the Cannot find module react admin build error

When a patch or minor upgrade across Strapi v4 fails the admin build with Cannot find module react, the cause is usually that the admin panel's runtime dependencies were never declared directly in the project. The fix is to list react, react-dom, react-router-dom and styled-components explicitly in package.json so they resolve from the project itself. Confirm this is your failure before changing anything. Open the build log, find the first error, and check that it names one of these modules and that the path points into node_modules under your project root. If the error names a different module, treat it as a separate problem.

Once the cause is confirmed, pin the four packages to versions that match the Strapi release you are moving to, then rebuild from a clean state. Delete node_modules, reinstall using the lockfile your team already uses, and commit the resulting lockfile change in the same commit as the package.json change so the dependency tree can be reproduced. Do not resolve the error by copying packages by hand into node_modules, because the next install will remove them and the build will fail again on another machine or in CI. Confirm the exact versions to pin against the Strapi v4 release notes for your target minor and the migration FAQ linked from this page.

Verify the fix before you move to the next minor. Run the production admin build, start the server, and open the admin panel in a browser with a user who has full permissions. Check that the login page renders, the content manager lists existing entries, and the media library and settings pages load without console errors. Repeat the build in your CI pipeline, not only on a developer laptop, since a successful local build can hide a missing declaration. Record the build command, the Node.js version and the lockfile commit so the same check can be repeated at each step of the upgrade path.

What to prepare before touching the project

Every minor step in the v4 line changes the project a little, and the v5 step changes it a lot. The preparation below gives you a restorable starting point, a record of what the project depends on, and a copy you can break safely. Work through the cards in order before running any upgrade command.

Full database backup and restore test

Take a complete database dump, then restore it into a separate instance and confirm the project starts and the content matches. Strapi's docs say to back up the database first because downgrading is not supported, so this restore is your only way back. Check that uploads and the .env secrets are also saved, since a database dump alone does not contain them.

Upgrade FAQ

Inventory of plugins and packages

List every installed plugin with its exact version from package.json and the lockfile. Note which plugins are community-built, since their v5 support may lag behind core. Add react, react-dom, react-router-dom and styled-components to the list if they are not declared, because patch upgrades across v4 minors can fail the admin build with a missing module error.

Custom admin and server code

Identify every custom admin panel component, webpack setting, route, controller, policy, middleware and lifecycle hook in the project. These are the places where a minor upgrade or the v5 codemods are most likely to need manual edits. Record which files you changed, who wrote them and whether tests cover them.

Working copy of project and database

Create a branch of the code and a restored copy of the database on a separate server or container. Run every minor upgrade and the major upgrade there first, so the production project is only touched once the steps are proven. Keep this copy in sync with production content if editors keep working during the project.

Node.js version against supported lines

Record the Node.js version in use and compare it with the Active or Maintenance LTS lines that Strapi 5 supports, as listed in the installation requirements. An old Node.js runtime can block the v5 step even when the code is ready. Confirm the target version with the current Strapi installation page before you schedule the switch.

Installation requirements

Front-end and API consumers

List every site, app, script and integration that reads the Strapi API, and note whether it expects the v4 response shape, id values or the Entity Service behavior. Strapi 5 changes the response format and introduces documentId, so consumers can break even when the CMS upgrade succeeds. Agree with each owner when their code will be tested against the new format.

Every skipped v4 minor is tested before the backup and codemods run

The diagram starts at your current 4.x project and moves top to bottom through the phases. First, the admin build must pass once the React dependencies are listed explicitly in package.json. Then the release notes for each skipped minor are applied and tested in turn until the project reaches the final 4.26.2 baseline. Only that baseline gets a database backup, because Strapi does not support downgrading. The upgrade tool then runs its codemods on a copy, and Strapi 5 performs its data migration on first start. Check the test results before deciding to go live or restore the backup.

Phases from the current 4.x project to a go or rollback decision.

How to test each step and roll back if it fails

Each v4 minor step should be tested before the next one starts, so a failure points to one version change rather than a stack of them. Run the same checks after every minor on a copy of the project and database, and record the results in a short log that names the version, the commit and the date. Start with the admin build, because the missing React dependency failure appears there first and blocks everything else.

  • Admin build: Run the build and confirm it completes without a Cannot find module react error. If it fails, check that react, react-dom, react-router-dom and styled-components are listed explicitly in package.json.
  • Content read and write: Open several content types in the admin panel, edit an entry, save it and publish it, then confirm the change appears in the database.
  • API tests: Call the main REST endpoints with an authenticated token and a public token and compare the responses with the pre-step baseline.
  • Plugin behavior: Exercise each custom and third-party plugin you depend on, including uploads, email and any scheduled jobs.

Do not move to the next minor until every check passes or the differences are documented and accepted.

What makes the catch-up and major upgrade take longer

This table compares the factors that add work to a Strapi v4 catch-up and major upgrade, what each one affects, and what to check before estimating. Read each row against your own project, since the number of skipped minors and the custom code you run usually matter more than the version number itself. The main takeaway is that the work grows with the amount of custom code, data and environments, so inventory those first.

Effort driverWhy it changes the workWhat to check
Skipped v4 minors and their notesEach skipped minor can carry config, dependency or API changes that must be applied in order before the major upgrade.List your current 4.x version, read the release notes for every minor up to 4.26.2, and note any breaking changes that touch your code.
Custom admin code and pluginsAdmin builds can fail on missing React dependencies, and plugins may not yet support the target version.Confirm react, react-dom, react-router-dom and styled-components are listed explicitly in package.json, and check each plugin's Strapi 5 support.
Custom backend code on the Entity ServiceStrapi 5 replaces the Entity Service API with the Document Service API, so custom services and controllers need manual rewriting.Search the codebase for Entity Service calls, and list which custom routes, lifecycle hooks and scripts depend on them.
Database engine and versionStrapi 5 supports PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and does not support MongoDB, so older engines need work first.Confirm your engine and version against the installation requirements, and plan a database move before the upgrade if you run MySQL 5 or MongoDB.
Data volume and first-start migrationData migration scripts run on the first start of Strapi 5, so larger datasets extend the cutover window.Measure database size, media volume and content counts, and rehearse the migration on a copy to time it in your own environment.
Front-end clients and API consumersThe API response format changes, so every client that reads Strapi must be updated or temporarily configured for compatibility.List each front end, mobile app, integration and GraphQL client, and confirm which ones need the v4 response header during the switch.
Environments kept in syncEach environment (development, staging, production) must be upgraded and tested in the same order, and downgrades are not supported.Count the environments, confirm who owns each one, and agree a promotion order with a database backup taken before each upgrade.

Common questions about moving from Strapi v4 minors to Strapi 5

How much does moving a Strapi v4 project to Strapi 5 cost?

The cost depends on the scope you agree in writing, not on a standard package. The main inputs are how many v4 minor releases sit between your version and 4.26.2, how many custom plugins, controllers, policies and admin customizations you run, how many front ends and integrations read the API, and how your database and hosting are set up. Ask any partner to split the quote into the v4 catch-up, the codemod review, the Strapi 5 data migration run, testing, and post-upgrade fixes. Note which parts are one-time and which recur, such as later minor upgrades or a retainer for support. Strapi's own plans are a separate cost: the self-hosted Community edition is free, while Growth is listed at 45 US dollars per month including 3 users, per the Strapi self-hosted pricing page.

How long does a Strapi v4 to v5 upgrade take?

Duration is set by the number of skipped v4 minors, the size of your custom code, and how many systems depend on the API. Each skipped minor needs its release notes read and its changes applied, and the admin build must succeed before you move on. The Strapi 5 step adds codemod review, the data migration on first start, and client updates for the new response format. Teams with few customizations and a clean test suite move faster than teams with many plugins and undocumented front ends. Ask for a timeline that lists each stage and the test gate that closes it.

What does the upgrade need from our own team?

Expect to provide people who know the business rules behind your content types, the owners of each front end and integration, and someone who can approve the production change window. Your team also needs access to a copy of the production database, the source code repository, staging environments and the deployment pipeline. Confirm who signs off on content model changes, because some Strapi 5 changes affect how editors see drafts and localized content. Agree on a named owner for test results before the work starts so decisions do not stall.

Can our own developers run the v4 minor upgrades and the Strapi 5 move?

Yes, if they have Node.js, database and deployment experience and enough time to read each release's notes. The v4 catch-up is incremental work: upgrade one minor, build the admin, run tests, and record what changed. The Strapi 5 move is riskier because it rewrites back-end code for the Document Service API and changes response formats, and the data migration runs on first start. Check your team's familiarity with TypeScript, the Strapi plugin model and your database engine before deciding. A partner is most useful for planning, the first pass through custom code, and the production cutover.

Can we skip the v4 minor releases and upgrade straight to Strapi 5?

You can plan for a direct jump, but the Strapi documentation is built around reaching the final v4 release first. Strapi v4 reached end of life on April 30, 2026, and its final release, 4.26.2 of June 9, 2026, will receive no further updates, according to Strapi's v4 to v5 migration docs. Going through 4.26.2 gives you the latest v4 fixes and the most current codemods before the major change. Skipping minors means you must read the notes for each skipped release yourself, and missing one can leave a breaking change unhandled. Confirm the exact path with the migration introduction and FAQ before you commit to a plan.

What happens to our plugins and custom code during the upgrade?

Custom and third-party plugins are the most common source of delay. Each one needs a check for Strapi 5 support, and some may need porting, including changes to admin code and helper packages. Custom controllers, services and policies may call the Entity Service API, which Strapi 5 replaces with the Document Service API, so they need manual rewrites beyond what codemods do. Make an inventory of every plugin, its maintainer, and whether it has a Strapi 5 release before you start. Community plugins without active maintenance may need replacing, which affects scope and cost.

What should we do if the admin build fails during a v4 minor upgrade?

A common cause is a missing dependency. Patch upgrades across v4 minors can fail the admin build with the error Cannot find module react unless react, react-dom, react-router-dom and styled-components are listed explicitly in package.json, according to Strapi's v4 to v5 FAQ. Add those packages at the versions your project needs, rebuild the admin, and confirm the build passes before continuing to the next minor. Keep the failed step in version control so you can compare changes. If the error persists, check the release notes for the minor you are on and the dependency tree before changing anything else.

Do we need a database backup before upgrading Strapi?

Yes. Strapi's migration docs say to back up the database first because downgrading is not supported. Strapi 5 runs data migration scripts on first start, so a failed run cannot be reversed by reinstalling v4 code against the migrated database. Take a full backup before each step that changes the database, test restoring it on a separate copy, and record the code version that matches each backup. Ask your partner how the backup and restore plan fits into the change window and what happens if the migration stops partway through.

When an outside partner earns its place in the upgrade

An internal team can usually run the v4 minor catch-up alone when the project is close to a stock Strapi 4 setup, the admin panel has little custom code, and the team already knows how to read each release's notes. The work is mostly sequential: upgrade one minor, fix the admin build, run the tests, record what changed, then move on. A partner earns its place when one or more of those conditions does not hold. Check how many custom plugins, lifecycle hooks, custom admin extensions and package.json overrides the project carries, because each one adds a point where a minor release can break the build or behavior and needs its own check.

Regulated environments change the calculation even when the code is simple. If an auditor, internal control owner or data protection function expects evidence of each step, such as a dated record of the version reached, the build output, test results and a tested database backup taken before each change, someone has to produce and keep that record. Confirm early who owns that evidence and what format your controls require. Also confirm the release window you actually have. Strapi 4 reached end of life on April 30, 2026, and its final release, 4.26.2 of June 9, 2026, will receive no further updates, so a project still on v4 has a fixed reason to move, but the calendar for the move is set by your own change process.

Staff familiarity is the other common gap. The catch-up is a stepping stone, and the next step is the major upgrade, which replaces the Entity Service API with the Document Service API. If nobody on the team has written Document Service code, the people who handle the minors may be the same people who will later have to read the codemod output, so ask who will carry that work forward. Before deciding, ask your team to list the custom code paths, name the owner of each, state the backup and rollback plan, and set a date for the Strapi 5 target. A partner can then be scoped to the gaps that remain, with the outcome left to the evidence your team collects.

How DeployOpen scopes and delivers the Strapi upgrade

DeployOpen plans the move from an older Strapi 4.x project to the final v4 release as a written, fixed-scope piece of work before the Strapi 5 upgrade starts. The work covers the admin build, the notes for each skipped minor, and the checks that show the project is ready for the major step.

How we scope

  • We record your current Strapi 4.x version, Node.js version, database and installed plugins before quoting.
  • The written scope lists every skipped minor release whose notes we will read and apply.
  • We confirm who owns the admin build, the staging copy and the sign-off on each step.

How we build

  • We pin react, react-dom, react-router-dom and styled-components explicitly in package.json so the admin build resolves them.
  • We step through each v4 minor in order, applying the notes for that release and rebuilding the admin panel.
  • We keep a dated record of each version change, build result and error fixed along the way.

How we hand over

  • You receive the final v4 project with a reproducible install, lockfile and documented build steps.
  • You receive a written list of breaking changes found in the minor releases and how each was handled.
  • You receive a database backup taken before the major upgrade, with restore steps your team can run.

How we support

  • Ongoing upgrades, dependency checks and continuous testing are available as a retainer after handover.
  • Support can cover the Strapi 5 upgrade that follows, using the same scope and handover structure.
  • Ask us to confirm response arrangements and access rules in the written scope before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.