title: Angular lazy loading module without router
body: <p>is it possible to lazy load module from eagerly loaded "shared" module which is linked with other modules via npm link? I am getting this error: 
  ERROR in ./src/$$_lazy_route_resource lazy namespace object
  Module not found: Error: Can't resolve 'C:project/shared/src/lazy module/lazy.module.ngfactory.js' in 'C:project\core\src\$$_lazy_route_resource'.</p>
  
  <pre><code>-project 
          - shared (linked) (eagerly loaded)
                  - lazy module
          - core (link) (main app module)
  </code></pre>
  
  <p>This is my angular.json (located in core)
  <code>"lazyModules": ["../shared/src/lazy module/lazy.module"],</code></p>
  
  <p>test.component.ts</p>
  
  <pre><code>constructor(public injector: Injector, private loader: NgModuleFactoryLoader) { }
  
  private moduleRef: NgModuleRef&lt;any&gt;;
  
  load(): Promise&lt;void&gt; {
      if (this.moduleRef) {
          return Promise.resolve();
      }
  
      const path = 'src/lazy-module/lazy.module#LazyModule';
  
      return this.loader
          .load(path)
          .then(moduleFactory =&gt; {
              this.moduleRef = moduleFactory.create(this.injector).instance;
              console.warn('moduleRef', this.moduleRef);
          })
          .catch(err =&gt; {
              console.error('error loading module', err);
          });
  }
  
  ngOnInit() {
      this.load();
  }
  </code></pre>