Cannot find module 'react' Strapi 4.25.5

Hello! Im updating my Strapi from 4.14.x to 4.25.5 but im getting pretty sick error talking about react… :eyes:

Deleted .lock, cache, nodemodules but without effect, do you have and ideas?

I Found old post but this solutions doesnt seem best for me. (first screen)

Second screen is my error :confused:

This topic has been created from a Discord post (1258070925216059533) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

1 Like

Oh, so strapi now needs react installed? And thats tottaly normal? :thinking:

Admin UI - is a React app )

So what is the solution? react should be dependency of Strapi already, but why it can’t be found?

I will try switching from yarn to npm and see if this helps

That should’ve been done automatically during quickstart

I ran into problem with upgrade, since in older versions react was not part of dependencies. After merging packages.json with new STRAPI install it is now working.