AngularDoc / angulardoc.github.io

angulardoc.github.io web site
https://angulardoc.github.io
34 stars 2 forks source link

Not showing lazy loaded modules in nx workspace #22

Open vimalraj-a opened 6 years ago

vimalraj-a commented 6 years ago

I have converted angular cli project to nx workspace and angular cli able to build the app perfectly. But, Angular copilot not showing me the those modules.

Angular JSON: image

Route screen: image

agiledigits commented 6 years ago

@vimalraj-a Are you seeing multiple project menus? Each of these projects should have its own set of menus. Also please verify that the tsconfig files are present in these folders.

vimalraj-a commented 6 years ago

@agiledigits I don't see project menu. see the screenshot below image

Project level tsconfig file names are suffixed with .lib.json eg: tsconfig.lib.ts

agiledigits commented 6 years ago

Are these tsconfig files in angular.json file, too? Could you import this repo and see if it looks OK? https://github.com/nrwl/nx-examples

vimalraj-a commented 6 years ago

Same for nx-example repo. Can't see projects menu image

In my local nx workspace, library projects don't have build step. So, no tsconfig file mentioned for those projects. basically they are lazy loaded by angular.

Application project resolves the lazy loaded projects by adding path in include section of tsconfig.json Ref: https://nrwl.io/nx/guide-nx-workspace (Creating a lib section )

Application tsconfig file: image

agiledigits commented 6 years ago

I bet these libs would show up if you put a tsconfig file in them. They might be lazy loaded at runtime just fine, but the static analysis tool would need to have a tsconfig file to start with.