Can't migrate to 4.4.5. Heroku build fails

System Information
  • Strapi Version: 4.3.8 → 4.4.5
  • Operating System: Linux (Heroku)
  • Database: PostgreSQL 14.6
  • Node Version: 16.19.0
  • NPM Version: 9.4.0
  • Yarn Version: none

My build is failing on Heroku with error

Can’t resolve ‘react/jsx-runtime’ in @strapi/strapi

When i’m trying to upgrade from 4.3.8 to 4.4.5 according to instructions here
In dev environment i don’t have any issues

Here is my package.json:

  "scripts": {
    "dev": "strapi develop",
    "debug": "node --inspect ./node_modules/.bin/strapi develop",
    "start": "strapi start",
    "build": "strapi build",
    "strapi": "strapi"
  },
  "devDependencies": {},
  "dependencies": {
    "@_sh/strapi-plugin-ckeditor": "^1.1.1",
    "@strapi/plugin-i18n": "4.4.5",
    "@strapi/plugin-users-permissions": "4.4.5",
    "@strapi/provider-email-sendgrid": "^4.4.5",
    "@strapi/provider-upload-cloudinary": "^4.4.5",
    "@strapi/strapi": "4.4.5",
    "pg": "8.7.3",
    "pg-connection-string": "^2.5.0",
    "strapi-plugin-slugify": "^2.2.2"
  },
  "engines": {
    "node": ">=12.x.x <=16.x.x",
    "npm": ">=6.0.0"
  },

these are the updates i’m deploying:

anybody? any ideas? I’m just following the migration guide on a very basic app

bump! the problem is still there

@glaux I have the exact same issue with the same dependencies. Have you found a solution yet?

yeah, bumping node version helped

Hello there, i’m having the same issue. Can you explain how you solved this?

this is my package.json that works

  "dependencies": {
    "@strapi/strapi": "4.7.0",
    "@strapi/plugin-users-permissions": "4.7.0",
    "@strapi/plugin-i18n": "4.7.0",
    "@_sh/strapi-plugin-ckeditor": "^1.1.1",
    "@strapi/provider-email-sendgrid": "^4.4.5",
    "@strapi/provider-upload-cloudinary": "^4.4.5",
    "pg": "8.7.3",
    "pg-connection-string": "^2.5.0",
    "strapi-plugin-slugify": "^2.2.2"
  },
...
  "engines": {
    "node": "14.20.0",
    "npm": "6.14.17"
  }
}