Repository navigation
fix(lazy-loading): fix an issue with webpack and lazy loader. - #11387
Conversation
The issue was introduced in PR#11049.
Fixes angular#4756 style(dom_renderer): use const (angular#11229) build: update the symlinks scripts for Windows to new packaging (angular#11192) docs(CHANGELOG): fix provider syntax (angular#11258) fixes angular#11256 fix typo (angular#11265) meesage => message refactor(EventManager): remove ListWrapper (angular#11363) fix(compiler): correctly type event handler proxy functions fix(compiler): error when `NgModule.bootstrap` contains `undefined` or `null` fix(lazy-loading): fix an issue with webpack and lazy loader. (angular#11387) The issue was introduced in PR#11049. feat(benchmarks): add targetable benchmarks back refactor(benchmarks): align tree benchmark with largetable benchmark - add ng2_switch benchmark to track `ngFor` over `ngSwitch` - measure create only, createDestroy and update - simplify the created dom - always add a style binding ci: update SauceLabs badge when running CI on master (angular#11352) build(test.sh): clear dist directory when the script starts This is to prevent stale files causing the tests to fail when we run them locally after checking out a new revision. build: remove obsolete presubmit.sh script test: cleanup playground/src/bootstrap.ts file docs: misc fixes. docs(common_module): Fix macro format docs(number_pipe): Add missing period sign docs(date_pipe): Fix suffix consistency docs(date_pipe): Fix missing quote docs(number_pipe): Fix incorrect article Looks like the word "Polyfill" does not start with a vowel pronunciation. docs(location_strategy): Fix code format Add missing \`\`\` at start. docs(i18n_plural_pipe): Fix code format docs(location): Add missing period sign refactor(ngSwitch): fix typo on parameter docs(di): Add missing quote docs(compiler): Fix typo docs(compiler): Add missing period sign docs(directives): Fix description for styles parameter docs(location_strategy): Add code language Revert for misunderstanding. Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe test: reactivate the remaining disabled tests in Edge (angular#11188) Fixes angular#4756 style(dom_renderer): use const (angular#11229) build: update the symlinks scripts for Windows to new packaging (angular#11192) docs(CHANGELOG): fix provider syntax (angular#11258) fixes angular#11256 fix typo (angular#11265) meesage => message refactor(EventManager): remove ListWrapper (angular#11363) fix(compiler): correctly type event handler proxy functions fix(compiler): error when `NgModule.bootstrap` contains `undefined` or `null` fix(lazy-loading): fix an issue with webpack and lazy loader. (angular#11387) The issue was introduced in PR#11049. feat(benchmarks): add targetable benchmarks back refactor(benchmarks): align tree benchmark with largetable benchmark - add ng2_switch benchmark to track `ngFor` over `ngSwitch` - measure create only, createDestroy and update - simplify the created dom - always add a style binding ci: update SauceLabs badge when running CI on master (angular#11352) build(test.sh): clear dist directory when the script starts This is to prevent stale files causing the tests to fail when we run them locally after checking out a new revision. build: remove obsolete presubmit.sh script test: cleanup playground/src/bootstrap.ts file docs: misc fixes. docs(common_module): Fix macro format docs(number_pipe): Add missing period sign docs(date_pipe): Fix suffix consistency docs(date_pipe): Fix missing quote docs(number_pipe): Fix incorrect article Looks like the word "Polyfill" does not start with a vowel pronunciation. docs(location_strategy): Fix code format Add missing \`\`\` at start. docs(i18n_plural_pipe): Fix code format docs(location): Add missing period sign refactor(ngSwitch): fix typo on parameter docs(di): Add missing quote docs(compiler): Fix typo docs(compiler): Add missing period sign docs(directives): Fix description for styles parameter docs(location_strategy): Add code language Revert for misunderstanding.
Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe test: reactivate the remaining disabled tests in Edge (angular#11188) Fixes angular#4756 style(dom_renderer): use const (angular#11229) build: update the symlinks scripts for Windows to new packaging (angular#11192) docs(CHANGELOG): fix provider syntax (angular#11258) fixes angular#11256 fix typo (angular#11265) meesage => message refactor(EventManager): remove ListWrapper (angular#11363) fix(compiler): correctly type event handler proxy functions fix(compiler): error when `NgModule.bootstrap` contains `undefined` or `null` fix(lazy-loading): fix an issue with webpack and lazy loader. (angular#11387) The issue was introduced in PR#11049. feat(benchmarks): add targetable benchmarks back refactor(benchmarks): align tree benchmark with largetable benchmark - add ng2_switch benchmark to track `ngFor` over `ngSwitch` - measure create only, createDestroy and update - simplify the created dom - always add a style binding ci: update SauceLabs badge when running CI on master (angular#11352) build(test.sh): clear dist directory when the script starts This is to prevent stale files causing the tests to fail when we run them locally after checking out a new revision. build: remove obsolete presubmit.sh script test: cleanup playground/src/bootstrap.ts file docs: misc fixes. docs(common_module): Fix macro format docs(number_pipe): Add missing period sign docs(date_pipe): Fix suffix consistency docs(date_pipe): Fix missing quote docs(number_pipe): Fix incorrect article Looks like the word "Polyfill" does not start with a vowel pronunciation. docs(location_strategy): Fix code format Add missing \`\`\` at start. docs(i18n_plural_pipe): Fix code format docs(location): Add missing period sign refactor(ngSwitch): fix typo on parameter docs(di): Add missing quote docs(compiler): Fix typo docs(compiler): Add missing period sign docs(directives): Fix description for styles parameter docs(location_strategy): Add code language Revert for misunderstanding. Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe Proper case pipe test: reactivate the remaining disabled tests in Edge (angular#11188) Fixes angular#4756 style(dom_renderer): use const (angular#11229) build: update the symlinks scripts for Windows to new packaging (angular#11192) docs(CHANGELOG): fix provider syntax (angular#11258) fixes angular#11256 fix typo (angular#11265) meesage => message refactor(EventManager): remove ListWrapper (angular#11363) fix(compiler): correctly type event handler proxy functions fix(compiler): error when `NgModule.bootstrap` contains `undefined` or `null` fix(lazy-loading): fix an issue with webpack and lazy loader. (angular#11387) The issue was introduced in PR#11049. feat(benchmarks): add targetable benchmarks back refactor(benchmarks): align tree benchmark with largetable benchmark - add ng2_switch benchmark to track `ngFor` over `ngSwitch` - measure create only, createDestroy and update - simplify the created dom - always add a style binding ci: update SauceLabs badge when running CI on master (angular#11352) build(test.sh): clear dist directory when the script starts This is to prevent stale files causing the tests to fail when we run them locally after checking out a new revision. build: remove obsolete presubmit.sh script test: cleanup playground/src/bootstrap.ts file docs: misc fixes. docs(common_module): Fix macro format docs(number_pipe): Add missing period sign docs(date_pipe): Fix suffix consistency docs(date_pipe): Fix missing quote docs(number_pipe): Fix incorrect article Looks like the word "Polyfill" does not start with a vowel pronunciation. docs(location_strategy): Fix code format Add missing \`\`\` at start. docs(i18n_plural_pipe): Fix code format docs(location): Add missing period sign refactor(ngSwitch): fix typo on parameter docs(di): Add missing quote docs(compiler): Fix typo docs(compiler): Add missing period sign docs(directives): Fix description for styles parameter docs(location_strategy): Add code language Revert for misunderstanding.
|
This is still not working after updating to Angular 2 rc7. Still gives me error module not found. This is what I am doing app.routing.ts strategies.module.ts strategies.routing.ts Error: |
|
@haseeb200 It may require the full file name including extension. Try adding *.ts extension to your module file reference |
|
Check your |
|
@andyrue I probably don't have something set up correctly. What typings.d.ts are you referring to? I have the following typings configuration (typings.json) so far in my project: |
|
@kamarouski Sorry...was jumping between different threads related to lazy loading and just realized this one wasn't related to angular-cli which comes with a |
|
I'm still seeing the same problem in the 2.0 Final as well. I'm assuming we must be missing some key step, but I can't find any documentation on what that might be. |
|
@DaveMBush use this code it will solve the issue for now. |
|
@haseeb200 Yes, of course, but this is exactly what this bug was suppose to fix. |
|
Hi @haseeb200 Could you please take a look in the code below and check if I'm missing something? I'm using Angular v2.0 ` const appRoutes: Routes = [ export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes); Thanks, |
|
Thanks @haseeb200 ! But I figured out yesterday that my problem was a configuration on the tsconfig file... After setting it to false, worked as a charm. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |

Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
Webpack will not recognize the call to
System.import()following PR #11049.What is the new behavior?
Webpack will recognize the call to
System.import()and properly inject its logic to load the bundle.