Moralis database works locally but not on deployed link

So I am using moralis for database and locally it works fine but if I deploy it, I get an error which i am unable to debug.ss1
It only happens when I try to access moralis object

ss2

This is the code

you can not check any user like from in front end, you can do it only in backend or in a cloud function with master key. It will still work for current authenticated user

the name of the class should be User

Its not the base User object. I have created a new object named β€˜user’

try to add more logging in order to debug, you can also try to look in network tab to see if there is more info there