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
when use SystemJsNgModuleLoader, cannot find module #5981
- [ bug report ]
ERROR Error: Uncaught (in promise): Error: Cannot find module './app/example/template/test-template/test-template.module'.
### Versions.
@angular/cli: 1.0.0
node: 6.9.4
os: darwin x64
### Repro steps.
when load dynamic module, using SystemJsNgModuleLoader.load(this.path), in browser inspect, got this error: "ERROR Error: Uncaught (in promise): Error: Cannot find module "'./app/example/template/test-template/test-template.module'
files path:
-src/app/example/template/test-template/test-template.module.ts
-src/app/example/example.component.ts
In example.component.ts, I tried to use this.path as below but all cannot work :
1. src/app/example/template/test-template/test-template.module
2. app/example/template/test-template/test-template.module
3. ./app/example/template/test-template/test-template.module
4. ./template/test-template/test-template.module
### Mention any other details that might be useful.
Does angular-cli allow us to load a module dynamically?
Thanks.
Activity
elainaRenee commentedon Apr 27, 2017
I am having this issue as well
oparisy commentedon Apr 28, 2017
Same thing. I cannot seem to be able to dynamically load an external module.
By "external" I mean "not available to
angular-cliduring theng buildphase" (but independently compiled usingtsc).filipesilva commentedon May 5, 2017
I think this isn't supported, roughly for the same reason as custom routers are not supported: #4541.
I'll refer your issue there as this is part of a bigger topic.
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.