Class “Drush\Utils\StringUtils” not found when generating content in Drupal?

I ran into this problem for a while when I was trying to generate content alone on a complex content type. I thought it had to do with the content type. In reality all I had to do is enable “devel” along with “devel generate”.

#Drupal 10