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
In my team we're trying to put together a working AOT build with angular 4, @ngtools/webpack (not full angular-cli) and lazy loaded modules. Mini repo is available here.
Current version excludes JiT-related entry points and uses AoT entry points. Build goes fine, but at runtime we see the dreaded Error: Cannot find module '../private/module.ngfactory'. when trying to browse to lazy loaded area.
Locally we also tried doing the opposite (as you do in this repo): exclude AoT-related stuff and use JiT entry points. Same as before: build ok, error at runtime. We also tried adding "baseUrl": "." to tsconfig, but it made no difference.
In both cases, as noted on other angular-cli issues (e.g. 2452), in build output folder we see 0-bundle.js.map, but not 0-bundle.js.
Have you tried upgrading this project to angular 4.1.1, @ngtools/webpack 1.3.1, webpack 2.2.1 (or newer), typescript 2.2.1 (or newer)? Thanks
The text was updated successfully, but these errors were encountered:
In my team we're trying to put together a working AOT build with angular 4, @ngtools/webpack (not full angular-cli) and lazy loaded modules. Mini repo is available here.
Current version excludes JiT-related entry points and uses AoT entry points. Build goes fine, but at runtime we see the dreaded
Error: Cannot find module '../private/module.ngfactory'.
when trying to browse to lazy loaded area.Locally we also tried doing the opposite (as you do in this repo): exclude AoT-related stuff and use JiT entry points. Same as before: build ok, error at runtime. We also tried adding
"baseUrl": "."
to tsconfig, but it made no difference.In both cases, as noted on other angular-cli issues (e.g. 2452), in build output folder we see
0-bundle.js.map
, but not0-bundle.js
.Have you tried upgrading this project to angular 4.1.1, @ngtools/webpack 1.3.1, webpack 2.2.1 (or newer), typescript 2.2.1 (or newer)? Thanks
The text was updated successfully, but these errors were encountered: