Having error on heroku when using Vite library, Cannot read properties of null (reading ‘useContext’)
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.