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
{{ message }}
Repository navigation
.ngfactory not found when upgrading @ngtools/webpack to >1.2.0 #4124
I have an app set up with @ngtools/webpack v1.2.0 and webpack v2.1.0-beta.27. When I try to upgrade to any of v1.2.1, v1.2.2, v1.2.3 or v1.2.4 (and also the required webpack version) I get the following error:
ERROR in ./src/boot-client-aot.ts
Module not found: Error: Can't resolve './components/main.aot.ngfactory' in 'XXXXX\src'
@ ./src/boot-client-aot.ts 5:0-70
boot-client-aot.ts:
import"./polyfills";import"./rxjs-operators";import{enableProdMode}from'@angular/core';import{platformBrowser}from"@angular/platform-browser";import{MainModuleNgFactory}from"./components/main.aot.ngfactory";enableProdMode();// Boot the application, either now or when the DOM content is loadedconstplatform=platformBrowser();constbootApplication=()=>{platform.bootstrapModuleFactory(MainModuleNgFactory);};if(document.readyState==="complete"){bootApplication();}else{document.addEventListener("DOMContentLoaded",bootApplication);}
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.
Activity
filipesilva commentedon Jan 24, 2017
@hansl any idea what's going wrong?
colltoaction commentedon Feb 4, 2017
just tried
v1.2.8and it's still not working.wuzhouyang commentedon Feb 9, 2017
resolved ?
colltoaction commentedon Feb 9, 2017
Sorry I'm not able to provide a repro at the moment. Are you having this same issue? Can you help with a repro?
Thanks!
wuzhouyang commentedon Feb 9, 2017
Sorry i just only used the @ngtool/webpack in my project. It's work in my repo but when i run my other project i got some error

colltoaction commentedon Feb 13, 2017
It seems to work if I use a simple main file and let the tools do their magic by convention like here: https://github.com/kunl/Angular-webpack-AOT/blob/master/src/main.ts
filipesilva commentedon May 22, 2017
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.