I have been developing an website for phonebooks. I have created its front-end first then minified this using “npm run build” script. After making the front-end, the backend is created from scratch using expressjs, nodejs and mongoDB as its database and this is already deployed using render.com opensource.
At first deploy of the website, it works fine but this is without its mongoDB database. I connect the database to my backend source code along with its minified front-end code, the “dist” file and after running it again, it returns an error from the “dist” file to the console. The image below are the errors.
I have tried debugging this for days but I couldnt still understand it since it was coming from a minified source code.
My database works fine as it I reviewed the response from the network. The image below is the response or headers of data.
Does anyone experienced or know this problem? What went wrong since I made an noting website with the same method but it works perfectly fine except for some features is not included to my noting website.