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
there is a loadChildren in my project
export const routes: Routes = [
{ path: '', redirectTo: 'test01', pathMatch: 'full'},
{ path: 'test01', loadChildren: 'app/testing01/test01.module' },
when ng build --aot
exception occurred:
0% compiling can't resolve module D:/ng2/aotdemo/src/app/testing01/test01.module.ts from D:/ng2/aotdemo/src/app/testing01/test01.module.ts
can't find symbol MainModule exported from module D:/ng2/aotdemo/src/app/testing01/test01.module.ts
Error: can't find symbol MainModule exported from module D:/ng2/aotdemo/src/app/testing01/test01.module.ts
at ReflectorHost.findDeclaration (D:\Users\iminar\Dev\angular\modules@angular\compiler-cli\src\reflector_host.ts:200:15)
at _loop_1 (D:\Users\iminar\Dev\angular\modules@angular\compiler-cli\src\codegen.ts:62:45)
at CodeGenerator.readFileMetadata (D:\ng2\aotdemo\node_modules.npminstall@angular\compiler-cli\0.6.4@angular\compiler-cli\src\codegen.js:66:13)
at D:\Users\iminar\Dev\angular\modules@angular\compiler-cli\src\codegen.ts:105:56
Activity
dev-johnny-gh commentedon Oct 9, 2016
+1
hassanasad commentedon Oct 10, 2016
I could never get loadChildren to work so simply as
loadChildren: 'app/testing01/test01.module'in webpack.I use something like this:
and then in the test01.module file
But this might not work for
--aotflag.filipesilva commentedon Oct 10, 2016
Dupe of #2452
angular-automatic-lock-bot commentedon Sep 6, 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.