Everytime I host my current project to heroku it gets crashed saying ReferenceError: TextEncoder is not defined at Object. (/app/node_modules/mongodb-connection-string-url/node_modules/whatwg-url/lib/encoding.js:2:21) after updating the module as mentioned and wasting almost a whole day , I got to know that heroku installs node_modules independently , so my question how can i change the modules of a deployed app to heroku??
Any help Appreciated