Strapi5 upgrade - run build fails with error related to "shallowEqual" is not exported by "__vite-optional-peer-dep:react-redux:@reduxjs/toolkit", imported by "node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js"

node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js (53:9): “shallowEqual”
fixed by
npm install react-redux@latest