On my project my team has upgraded nx from v14 to v16. I'm trying to generate a new component with updated CLI commands provided by nx here: https://nx.dev/nx-api/angular/generators/component
When I run it like this npx nx g @nx/angular:component --name=my-component --directory=./apps/my-app/src/app --nameAndDirectoryFormat=derived I receive an error from nx 'directory' is not found in schema.
When I try to call the barebones nx wizard via npx nx g @nx/angular:component, after I have provided the name of the component in the wizard, I get NX: Cannot read properties of undefined (reading 'find').
Does anyone know what can be wrong with the setup?