Is your project Javascript or Typescript: Typescript
Describe the bug
Whenever I update my Strapi version to an upward patch or minor version, I get different error messages.
For example, I have a project used in production on version 5.0.6; whenever I try to update to 5.1.1 I can successfully start Strapi and access the home page, but immediatly get this error message when trying to access the content page:
Error: `useContentManagerInitData` must be used within `StrapiApp`
at https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4694:4804
at W9e (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:2465:6075)
at r (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4694:4771)
at _e (https://api.tesnim.fr/admin/layout-DX_52HSH-CGfON6Jl.js:28:1605)
at Ge (https://api.tesnim.fr/admin/layout-DX_52HSH-CGfON6Jl.js:28:3638)
at rC (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:204:387)
at LHe (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:220:10189)
at yle (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:222:12182)
at Ez (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:239:2168)
at nce (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:235:22589)
Also this error on the Media Library page:
Error: `useRBAC` must be used within `Auth`
at https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4694:4804
at W9e (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:2465:6075)
at r (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4694:4771)
at m4 (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4709:2456)
at qOe (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:8964:94948)
at Xs (https://api.tesnim.fr/admin/index-KOlbnYPl-tPc-iSvq.js:19:119)
at rC (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:204:387)
at LHe (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:220:10189)
at yle (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:222:12182)
at Ez (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:239:2168)
And this error on the Content Type Builder page:
Error: `App` must be used within `GuidedTour`
at https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4694:4804
at W9e (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:2465:6075)
at r (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:4694:4771)
at AR (https://api.tesnim.fr/admin/index-CTEMO-m9-Cf9qfa09.js:2283:42184)
at rC (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:204:387)
at LHe (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:220:10189)
at yle (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:222:12182)
at Ez (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:239:2168)
at nce (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:235:22589)
at oze (https://api.tesnim.fr/admin/strapi-Da_QeCHX.js:235:22185)
But please note this please also arises when updating from 5.0.0-rc.15 to 5.0.1.
This problem is blocking me in production.
Let me add that I cannot deploy anymore in production, even when keeping the same Strapi version: the same errors pop in production. I am completely blocked and cannot ship any new feature.
Bug report
Required System information
Describe the bug
Whenever I update my Strapi version to an upward patch or minor version, I get different error messages. For example, I have a project used in production on version 5.0.6; whenever I try to update to 5.1.1 I can successfully start Strapi and access the home page, but immediatly get this error message when trying to access the content page:
Also this error on the Media Library page:
And this error on the Content Type Builder page:
But please note this please also arises when updating from 5.0.0-rc.15 to 5.0.1. This problem is blocking me in production.
Steps to reproduce the behavior
I don't think I can provide steps at this moment.
Expected behavior
Updating Strapi version should work.
Screenshots