title: How to lazy load a module from nrwl workspace libs folder?
body: <p>I have a main app named <code>myapp</code>. I have configured my routes as below:</p>
  
  <pre><code>const routes: Routes = [
    { path: 'home', loadChildren: 'libs/home/home.module#HomeModule'},
    { path: 'admin', loadChildren: 'libs/admin/admin.module#AdminModule' },
  
    { path: '', redirectTo: '/home', pathMatch: 'full' },
    { path: '**', component: PageNotFoundComponent }
  ];
  </code></pre>
  
  <p>My <code>home</code> and <code>admin</code> are modules with its own routing and are placed in <code>libs</code>. When I run my application my modules are not getting loaded. I guess this is simply a path issue.. can someone please guide me how to properly configure the lazy loading modules from the library folder in nrwl workspace?</p>
  
  <p>Here is the error I get:</p>
  
  <pre><code>ERROR Error: Uncaught (in promise): Error: Cannot find module 'libs/home/home.module'.
  Error: Cannot find module 'libs/home/home.module'.
      at eval (eval at ../../../../../apps/myapp/src/$$_lazy_route_resource lazy recursive (main.bundle.js:6), &lt;anonymous&gt;:5:9)
      at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:388)
  </code></pre>
  
  <p><strong>Note</strong>: I updated my tsconfig.app.json and tslint.json as follows:
  tslint.json</p>
  
  <pre><code>"nx-enforce-module-boundaries": [
        true,
        {
          "lazyLoad": [
            "home",
            "admin"
          ],
          "allow": []
        }
      ]
  </code></pre>
  
  <p>and tsconfig.app.json:</p>
  
  <pre><code> "include": [
      "**/*.ts",
      /* add all lazy-loaded libraries here: "../../../libs/my-lib/index.ts" */
      "../../../libs/home/index.ts",
      "../../../libs/admin/index.ts"    
    ],
  </code></pre>
  
  <p>thanks.</p>