После переключения на jspm для управления пакетами Angular2 (вместо использования тега сценария) у меня есть небольшая часть, которая не загружается. Кажется, он ищет их в корне: http://localhost:55707, а не в местоположении jspm, указанном в config.js.Проблема зависимости от углового2 jspm
Failed to load resource: the server responded with a status of 404 (Not Found)
Error: XHR error (404 Not Found) loading http://localhost:55707/zone.js(…)
http://localhost:55707/reflect-metadata.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:55707/es6-shim.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:55707/rxjs/add/operator/map.js Failed to load resource: the server responded with a status of 404 (Not Found)
config.js
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "typescript",
paths: {
"npm:*": "jspm_packages/npm/*",
"github:*": "jspm_packages/github/*"
},
map: {
"angular2": "npm:[email protected]",
"typescript": "npm:[email protected]",
"github:jspm/[email protected]": {
"assert": "npm:[email protected]"
},
"npm:[email protected]": {
"crypto": "github:jspm/[email protected]",
"es6-promise": "npm:[email protected]",
"es6-shim": "npm:[email protected]",
"process": "github:jspm/[email protected]",
"reflect-metadata": "npm:[email protected]",
"rxjs": "npm:[email protected]",
"zone.js": "npm:[email protected]"
},
// -- more mappings
}
});