You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd angular6-lib-lazy-submodule
ng build admin
npm run start
The log given by the failure
ERROR in Could not resolve module ./users/users.module relative to /C/Workspace/angular6-libtest/dist/admin/admin.d.ts
Desired functionality
It should be possible to have nested lazy modules without any error output on ng serve.
Mention any other details that might be useful
It seems that admin.d.ts tries to resolve paths of lazy routes, the problem is that its position within the folder structure is different than the routing module in the source folders. (one level above out of lib/ folder).
Why admin.d.ts isn't put in lib/ folder instead ?
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
node --version
v8.11.3
npm --version
5.6.0
ng --version
Angular CLI: 6.2.7
Node: 8.11.3
OS: win32 x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
@angular-devkit/architect 0.8.8
@angular-devkit/build-angular 0.8.8
@angular-devkit/build-ng-packagr 0.10.7
@angular-devkit/build-optimizer 0.8.8
@angular-devkit/build-webpack 0.8.8
@angular-devkit/core 0.8.8
@angular-devkit/schematics 0.8.7
@angular/cdk 6.4.7
@angular/cli 6.2.7
@angular/material 6.4.7
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.2.8
@schematics/angular 0.8.7
@schematics/update 0.8.7
ng-packagr 4.4.0
rxjs 6.3.3
typescript 2.7.2
webpack 4.16.4
Windows 10
Repro steps
git clone https://github.com/Aphax/angular6-lib-lazy-submodule
The log given by the failure
ERROR in Could not resolve module ./users/users.module relative to /C/Workspace/angular6-libtest/dist/admin/admin.d.ts
Desired functionality
It should be possible to have nested lazy modules without any error output on ng serve.
Mention any other details that might be useful
It seems that admin.d.ts tries to resolve paths of lazy routes, the problem is that its position within the folder structure is different than the routing module in the source folders. (one level above out of lib/ folder).
Why admin.d.ts isn't put in lib/ folder instead ?
The text was updated successfully, but these errors were encountered: