angularnx-workspace

Cannot find my app.module.ts file while working in a NX workspace


I am using NX workspace to work with two applications, a front-end and a back-end. The front-end seems to be working fine, but I cannot see the app.module.ts file for my dashboard (back-end). The application is running smoothly. Can someone help?

enter image description here


Solution

  • This is fine. Angular v15 bootstraps your application in standalone mode ("standalone": true). This can be seen by examining your main.ts.

    Components maintain their own context (rather than being inferred from an ngmodule context) via the imports array on the actual component. If your component uses another you simply import it also.