Why this error in my multinomial logistic regression code?

Could you edit this to provide a reprex, please. See the FAQ: How to do a minimal reproducible example reprex for beginners which will allow reproducing the error. You can use dput(chat) and cut and paste the output. Also need to know which package provides mlogit.data and mlogit.