How to fix the error "'expr' object has no attribute 'mesh'"?

You need to add a minimal working example for anyone to assist you with your error message. Please read the guidelines: