I am facing a very starnge error on the heroku plaform. I am using vite with react js application. It works fine with my local. But when i uplaod it to my heroku it shows some strange error. It shows “Cannot read properties of null (reading ‘useContext’)”. And i am not using useConext hook anywhere in my project. Let me share the file path where it shows the error.
at exports.useContext (https://mydomain.info/node_modules/.vite/deps/chunk-UIQOFC4U.js?v=53b92599:260:24)
One more thing to notice that it works on the default heroku project url it only shows error on my custom domain url and it shows only for first 15-30 minutes after every new push then it starts working fine. Can anyone help me with this.