Explore my clothing eCommerce website crafted with a free React ecommerce template. It's an exemplary React.js ecommerce project, offering an elegant, user-friendly shopping experience for fashion aficionados.
it skips starting of the json-server hence not loading the data leading to page error
this is when one runs a build for example in vercel
screenshot of a successful build
and screenshot of a build and start locally
we can see that locally it loads the db
but online it doesnt
Below is the error that I am getting while running in local. Please help. [plugin:vite:css] [postcss] Object.hasOwn is not a function /Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/react-toastify/dist/ReactToastify.css at /Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/daisyui/src/theming/functions.js:73:19 at Array.forEach (<anonymous>) at Object.convertColorFormat (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/daisyui/src/theming/functions.js:44:27) at /Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/daisyui/src/theming/functions.js:187:41 at Array.forEach (<anonymous>) at Object.injectThemes (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/daisyui/src/theming/functions.js:182:28) at mainFunction (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/daisyui/src/index.js:64:43) at registerPlugins (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/tailwindcss/lib/lib/setupContextUtils.js:815:61) at createContext (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1221:5) at getContext (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1278:19) at /Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:118:81 at /Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/tailwindcss/lib/processTailwindFeatures.js:46:11 at plugins (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/tailwindcss/lib/plugin.js:38:69) at LazyResult.runOnRoot (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/postcss/lib/lazy-result.js:329:16) at LazyResult.runAsync (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/postcss/lib/lazy-result.js:258:26) at LazyResult.async (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/postcss/lib/lazy-result.js:160:30) at LazyResult.then (/Users/subhamgupta/Documents/Repos/ecom-6/Clothing-Ecommerce-Shop-In-React-JSON-Server/node_modules/postcss/lib/lazy-result.js:404:17 Click outside, press Esc key, or fix the code to dismiss. You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.