Error: clean() got an unexpected keyword argument 'styles'

getting this error

Error: clean() got an unexpected keyword argument ‘styles’

what might be the issue and how to solve it

these are versions of frappe and erpnext