angular2 systemjs.config,包含多个程序包,该程序包只调用最后打开的一条路径,并且需要该组件

angular2 systemjs.config,包含多个程序包,该程序包只调用最后打开的一条路径,并且需要该组件,angular,systemjs,Angular,Systemjs,My systemjs.config有两个package home和manuallyCheck-这两个不同的ng2模块添加到文件home.ts和manually_check.ts中 (function (global) { System.config({ defaultJSExtensions: true, paths: { 'npm:': './node_modules/' }, map:

My systemjs.config有两个package home和manuallyCheck-这两个不同的ng2模块添加到文件home.ts和manually_check.ts中

    (function (global) {
    System.config({
        defaultJSExtensions: true,
        paths: {
            'npm:': './node_modules/'
        },
        map: {
            home: './app',
            manuallyCheck: './app',
            // angular bundles
        },
        packages: {
            manuallyCheck: {
                main: './manually_check.js',
                defaultExtension: 'js'
            },
            home: {
                main: './home.js',
                defaultExtension: 'js'
            },
        }
    });
})(this);
在两个html文件中,我将其包含在它的选择器中

<script src="./systemjs.config.js"></script>
<script>
    System.import('home').catch(function(err){ console.error(err); });
</script>
<home>Loading AppComponent content here ...</home>

<script src="./systemjs.config.js"></script>
<script>
    System.import('manuallyCheck').catch(function(err){ console.error(err); });
</script>
<manually-check>Loading AppComponent content here ...</manually-ckeck>
当我添加两个不同的systemjs.config.js时,其中只包含一个包,所有都可以

EXCEPTION: Error in :0:0 caused by: The selector "home" did not match any elements