Redux is returning undefined reducers on web hosting

I have been facing an issue with my online store code I am building with react and redux.
In localhost sometimes redux reducers not working and sometimes they work and send the API based on the code.
In vercel or in my own web hosting, the code of redux is not working and it’s returning of undefined reducers, i have no idea if it’s something caused by thunk or combineReducers but same code I was using in past and it worked perfect.

I want to share the code here.

index.js

import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { Provider } from "react-redux";
import { createStore, applyMiddleware } from "redux";
import { save, load, clear } from "redux-localstorage-simple";
import { composeWithDevTools } from "redux-devtools-extension";
import { thunk } from "redux-thunk";
import rootReducer from "./redux/reducers/rootReducer";

const store = createStore(
  rootReducer,
  load(),
  composeWithDevTools(applyMiddleware(thunk, save()))
);

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <Provider store={store}>
    <App />
  </Provider>
);

rootReducer.js

import productReducer from "./productReducer";
import brandReducer from "./brandReducer";
import categoryReducer from "./categoryReducer";
import { combineReducers } from "redux";
import { createMultilanguageReducer } from "redux-multilanguage";

const rootReducer = combineReducers({
  multilanguage: createMultilanguageReducer({ currentLanguageCode: "he" }),
  productData: productReducer,
  brandsData: brandReducer,
  categoryData: categoryReducer,
});

export default rootReducer;


productActions.js

import ProductService from "../services/productService";

export const GET_PRODUCTS_SUCCESS = "GET_PRODUCTS_SUCCESS";
export const GET_PRODUCTS_FAILED = "GET_PRODUCTS_FAILED";

export const getProducts = () => {
  return async (dispatch) => {
    await ProductService.getAllProducts()
      .then((res) => {
        dispatch({
          type: GET_PRODUCTS_SUCCESS,
          payload: res,
        });
      })
      .catch((err) => {
        dispatch({
          type: GET_PRODUCTS_FAILED,
          payload: err,
        });
      });
  };
};

productReducer.js

import {
  GET_PRODUCTS_SUCCESS,

} from "../actions/productActions";

const initState = {
  products: [],
  allProducts: [],
};

const productReducer = (state = initState, action) => {
  if (action.type === GET_PRODUCTS_SUCCESS) {
    return {
      ...state,
      allProducts: action.payload,
    };
  } 
  return state;
};

export default productReducer;

package.json

{
  "name": "onlinestore-front",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@cloudinary/url-gen": "^1.12.0",
    "@headlessui/react": "^1.7.17",
    "@heroicons/react": "^2.0.18",
    "@material-tailwind/react": "^2.1.9",
    "@pathofdev/react-tag-input": "^1.0.7",
    "@react-icons/all-files": "^4.1.0",
    "@reduxjs/toolkit": "^2.2.3",
    "@tailwindcss/forms": "^0.5.6",
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "@tinymce/tinymce-react": "^4.3.0",
    "@windmill/react-ui": "^0.6.0",
    "axios": "^1.5.1",
    "bootstrap": "^5.3.2",
    "cheerio": "^1.0.0-rc.12",
    "daisyui": "^4.4.10",
    "draft-convert": "^2.1.13",
    "draft-js": "^0.11.7",
    "draftjs-to-html": "^0.9.1",
    "framer-motion": "^11.1.7",
    "hamburger-react": "^2.5.0",
    "html-react-parser": "^4.2.9",
    "html-to-jsx": "^0.0.4",
    "i18next": "^23.6.0",
    "i18next-browser-languagedetector": "^7.1.0",
    "i18next-http-backend": "^2.3.0",
    "interweave": "^13.1.0",
    "js-cookie": "^3.0.5",
    "lodash": "^4.17.21",
    "pure-react-carousel": "^1.30.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-draft-wysiwyg": "^1.15.0",
    "react-dropzone": "^14.2.3",
    "react-hook-form": "^7.47.0",
    "react-html-parser": "^2.0.2",
    "react-i18next": "^13.3.1",
    "react-icons": "^4.11.0",
    "react-image-file-resizer": "^0.4.8",
    "react-multi-carousel": "^2.8.5",
    "react-phone-number-input": "^3.3.7",
    "react-redux": "^9.1.1",
    "react-responsive-carousel": "^3.2.23",
    "react-router-dom": "5.3.0",
    "react-scripts": "5.0.1",
    "react-textra": "^0.2.0",
    "react-toastify": "^9.1.3",
    "react-use": "^17.5.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-localstorage-simple": "^2.5.1",
    "redux-multilanguage": "^0.1.2",
    "redux-thunk": "^3.1.0",
    "suneditor": "^2.45.1",
    "suneditor-react": "^3.6.1",
    "tailwindcss": "^3.3.3",
    "tw-elements-react": "^1.0.0-alpha2",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "tailwindcss": "^3.3.3"
  }
}

I tried downgrading packages such as thunk and exporting it as default but it did not work and the issue still exists