I haven’t run ng new for a while, but if it’s missing AppModule, it may be because they bootstrapped the app using standalone application.
Check this part of the documentation that shows you how to provide dependencies in a standalone application: https://angular.io/guide/standalone-components#configuring-dependency-injection