I get Cannot read properties of undefined (reading 'toLowerCase')

System Information
  • Strapi Version: 4.3.6
  • Operating System: Ubuntu 20.04
  • Database: postgres
  • Node Version: v16.17.0
  • NPM Version:
  • Yarn Version: 1.22.19

Been trying to upgrade Strapi from 3.6 to latest version, got error Cannot read properties of undefined (reading ‘toLowerCase’) from node_modules/pluralize/pluralize.js:136:24

Hi there! I found your question here without any response…so it could be helpful for someone else in the future :slight_smile:

I was getting the same error trying to run rpm run develop. It happened after I deleted a component manually and forgot to delete the reference from a model that was using it. So I guess that it’s important to check models and references between them.

Hope it helps!