3

我正在使用Angular 2 See d應用程序並試圖安裝KendoUI Angular2控件。Kendoui Angular2使用Angular 2 Seed安裝404s

種子使用SystemJS,但在npm start上生成。我試圖添加從here使用外部依賴項,但我無法讓它工作。

我得到

Failed to load resource: the server responded with a status of 404 (Not Found) 
localhost/:47 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:5555/node_modules/@progress/kendo-angular-inputs.js(…) "Report this error at https://github.com/mgechev/angular2-seed/issues" 

這是我曾嘗試加入/tools/config/project.config.ts

this.SYSTEM_CONFIG_DEV.paths['@progress/kendo-angular-inputs'] = 
     `node_modules/@progress/kendo-angular-inputs`; 

    this.SYSTEM_BUILDER_CONFIG.packages['@progress/kendo-angular-inputs'] = { 
     main: './dist/npm/js/main.js', 
     defaultExtension: 'js' 
    }; 
+0

任何解決方案?我有類似的問題。我已經嘗試了所有規定的解決方案。 1)安裝(http://www.telerik.com/kendo-angular-ui/getting-started/#installation),2)plunkr(http://plnkr.co/edit/?p=preview), 3)甚至github網站(https://github.com/telerik/ng2-dashboard/issues/16) – Catchops

+0

我還沒有能夠解決它呢 – Rob

回答

0

我的尋路是有點過。這固定它

this.SYSTEM_CONFIG_DEV.paths['@progress/kendo-angular-dialog'] = 
     `${this.APP_BASE}node_modules/@progress/kendo-angular-dialog/dist/npm/js/main`; 

    this.SYSTEM_BUILDER_CONFIG.packages['@progress/kendo-angular-dialog'] = { 
     main: '/dist/npm/js/main', 
     defaultExtension : 'js' 
    }; 

並且你需要添加樣式ref到你的index.html。我無法讓它在配置文件或組件文件中工作。