Shiny deployment error on private shiny server

When I try to deploy my shiny apps to my company's shiny server, the deploy window shows the following message:

Preparing to deploy application...DONE
Uploading bundle for application: 1147...DONE
Error in bundle$id : $ operator is invalid for atomic vectors
Calls: <Anonymous> ... saveDeployment -> deploymentRecord ->
Execution halted

And the app cannot be deployed. In fact, when I log in to the shiny server, there is not even a log because the app could not be published at all. However, I was able to deploy it to without any issue, and the app works as expected there. I don't think there is any issue with the code, because I had just successfully deployed a very similar app to the company shiny server the other day, and plus the app works well locally.

What could be the problem here?