kendo ui 组件不兼容 Angular 5?
kendo ui components are not compatible with Angular 5?
我有一个 angular 2
应用程序,其中使用了 kendo ui
。
我正在尝试将 angular 版本从 2.4
升级到 5
。
kendo ui 与 angular 5 版本不兼容吗? 我搜索了一下,发现最新版本是 运行 angular 4.0版本。 package.json
如下所示。
package.json
{
"name": "dashboard",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "5.0.0",
"@angular/common": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/material": "2.0.0-beta.3",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "2.4.0",
"@angular/router": "^5.0.0",
"@progress/kendo-angular-buttons": ""0.20.1"",
"@progress/kendo-angular-charts": "0.16.1",
"@progress/kendo-angular-dropdowns": "0.32.0",
"@progress/kendo-angular-grid": "0.16.2",
"@progress/kendo-angular-intl": "0.10.0",
"@progress/kendo-angular-layout": "0.21.4",
"@progress/kendo-data-query": "0.3.6",
"@progress/kendo-drawing": "0.13.8",
"@progress/kendo-theme-default": "2.19.6",
"@telerik/kendo-theme-default": "1.33.4",
"@types/moment": "2.13.0",
"angular2-highcharts": "0.5.5",
"angular2-tooltip": "^3.1.0",
"bootstrap": "3.3.7",
"classlist.js": "^1.1.20150312",
"core-js": "2.4.1",
"cytoscape-qtip": "^2.7.1",
"font-awesome": "4.7.0",
"fullcalendar": "3.1.0",
"hammerjs": "2.0.8",
"intl": "^1.2.5",
"jquery": "^3.2.1",
"js-polyfills": "^0.1.34",
"lodash": "^4.17.4",
"moment": "2.18.1",
"ng-lightning": "1.3.0",
"ng2-bootstrap": "1.4.2",
"ngx-tooltip": "0.0.9",
"primeng": "^2.0.0",
"qtip": "0.0.4",
"qtip2": "^3.0.3",
"rxjs": "5.1.0",
"ts-helpers": "1.1.1",
"underscore": "1.8.3",
"web-animations-js": "^2.2.5",
"xmldom": "^0.1.27",
"zone.js": "0.7.6"
},
"devDependencies": {
"@angular/cli": "^1.6.3",
"@angular/compiler-cli": "2.4.0",
"@types/jasmine": "2.5.38",
"@types/lodash": "^4.14.50",
"@types/node": "6.0.68",
"codelyzer": "2.0.0",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.1",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "0.2.0",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"protractor": "5.1.0",
"ts-node": "2.0.0",
"tslint": "4.4.2",
"typescript": "2.4.2"
}
}
是 Kendo UI 与 Angular 5 不兼容。Angular 5 有一些内部变化导致与 Angular 5 不兼容. Kendo 团队正在努力。我在一周前寄给他们,他们说他们正在努力。但是他们没有确定什么时候发布。
我会建议你坚持使用 Angular 4,当他们发布 ANgular 5 兼容版本时,然后迁移到 ANgular 5。迁移会很容易,也许你不在迁移过程中需要更改单行代码。
我也在我的项目中使用 Kendo 数据网格、日期选择器和组合框。
希望对你有帮助
基本上 Kendo UI 与 Angular2+ 不兼容,因为它们彼此不通信。如果您自己实现此通信(使用 markFor Check 并在需要时刷新 Kendo UI 组件)它应该可以正常工作。
我使用 Kendo UI Scheduler 组件,我们已经从 Angular2 升级到 4,现在是 5.1.2,它仍然有效。您遇到什么问题?
Kendo UI 完全兼容 Angular 5. Check this blog post
我创建了一个应用程序并在 steps 之后安装了 Kendo UI,并且它工作正常。
命令:
ng new my-angular-kendo --style=scss
cd my-angular-kendo
npm install --save @progress/kendo-angular-buttons @progress/kendo-angular-l10n @angular/animations
package.json :
"dependencies": {
"@angular/animations": "^5.1.3",
"@angular/common": "^5.0.0",
"@angular/compiler": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"@progress/kendo-angular-buttons": "^2.0.0",
"@progress/kendo-angular-l10n": "^1.0.5",
"core-js": "^2.4.1",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14"
},
截图:
我正在使用 Angular 5 并且 KendoUI 完全兼容!
从我在下面的评论中看到的错误来看,您似乎使用的是 KENDO UI 库的旧版本。 OpaqueToken 在 angular 4 中被弃用并在 5 中被删除,因此出现错误。
https://github.com/angular/angular/pull/18971
确保从 Kendo npm 存储库中获取最新的软件包。
如果您能与我们分享您的 package.json 将很有帮助,这样我们就可以了解您当前使用的软件包版本。
此外,如果您使用 KendoUI 设置了 私有注册表 ,请确保 删除 它来自你的 npm,因为 Telerik 已经远离它,它会阻止你获得最新的 npm 包。
我有一个 angular 2
应用程序,其中使用了 kendo ui
。
我正在尝试将 angular 版本从 2.4
升级到 5
。
kendo ui 与 angular 5 版本不兼容吗? 我搜索了一下,发现最新版本是 运行 angular 4.0版本。 package.json
如下所示。
package.json
{
"name": "dashboard",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "5.0.0",
"@angular/common": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/material": "2.0.0-beta.3",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "2.4.0",
"@angular/router": "^5.0.0",
"@progress/kendo-angular-buttons": ""0.20.1"",
"@progress/kendo-angular-charts": "0.16.1",
"@progress/kendo-angular-dropdowns": "0.32.0",
"@progress/kendo-angular-grid": "0.16.2",
"@progress/kendo-angular-intl": "0.10.0",
"@progress/kendo-angular-layout": "0.21.4",
"@progress/kendo-data-query": "0.3.6",
"@progress/kendo-drawing": "0.13.8",
"@progress/kendo-theme-default": "2.19.6",
"@telerik/kendo-theme-default": "1.33.4",
"@types/moment": "2.13.0",
"angular2-highcharts": "0.5.5",
"angular2-tooltip": "^3.1.0",
"bootstrap": "3.3.7",
"classlist.js": "^1.1.20150312",
"core-js": "2.4.1",
"cytoscape-qtip": "^2.7.1",
"font-awesome": "4.7.0",
"fullcalendar": "3.1.0",
"hammerjs": "2.0.8",
"intl": "^1.2.5",
"jquery": "^3.2.1",
"js-polyfills": "^0.1.34",
"lodash": "^4.17.4",
"moment": "2.18.1",
"ng-lightning": "1.3.0",
"ng2-bootstrap": "1.4.2",
"ngx-tooltip": "0.0.9",
"primeng": "^2.0.0",
"qtip": "0.0.4",
"qtip2": "^3.0.3",
"rxjs": "5.1.0",
"ts-helpers": "1.1.1",
"underscore": "1.8.3",
"web-animations-js": "^2.2.5",
"xmldom": "^0.1.27",
"zone.js": "0.7.6"
},
"devDependencies": {
"@angular/cli": "^1.6.3",
"@angular/compiler-cli": "2.4.0",
"@types/jasmine": "2.5.38",
"@types/lodash": "^4.14.50",
"@types/node": "6.0.68",
"codelyzer": "2.0.0",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "3.2.0",
"karma": "1.4.1",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "0.2.0",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"protractor": "5.1.0",
"ts-node": "2.0.0",
"tslint": "4.4.2",
"typescript": "2.4.2"
}
}
是 Kendo UI 与 Angular 5 不兼容。Angular 5 有一些内部变化导致与 Angular 5 不兼容. Kendo 团队正在努力。我在一周前寄给他们,他们说他们正在努力。但是他们没有确定什么时候发布。
我会建议你坚持使用 Angular 4,当他们发布 ANgular 5 兼容版本时,然后迁移到 ANgular 5。迁移会很容易,也许你不在迁移过程中需要更改单行代码。 我也在我的项目中使用 Kendo 数据网格、日期选择器和组合框。 希望对你有帮助
基本上 Kendo UI 与 Angular2+ 不兼容,因为它们彼此不通信。如果您自己实现此通信(使用 markFor Check 并在需要时刷新 Kendo UI 组件)它应该可以正常工作。
我使用 Kendo UI Scheduler 组件,我们已经从 Angular2 升级到 4,现在是 5.1.2,它仍然有效。您遇到什么问题?
Kendo UI 完全兼容 Angular 5. Check this blog post
我创建了一个应用程序并在 steps 之后安装了 Kendo UI,并且它工作正常。
命令:
ng new my-angular-kendo --style=scss
cd my-angular-kendo
npm install --save @progress/kendo-angular-buttons @progress/kendo-angular-l10n @angular/animations
package.json :
"dependencies": {
"@angular/animations": "^5.1.3",
"@angular/common": "^5.0.0",
"@angular/compiler": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/http": "^5.0.0",
"@angular/platform-browser": "^5.0.0",
"@angular/platform-browser-dynamic": "^5.0.0",
"@angular/router": "^5.0.0",
"@progress/kendo-angular-buttons": "^2.0.0",
"@progress/kendo-angular-l10n": "^1.0.5",
"core-js": "^2.4.1",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14"
},
截图:
我正在使用 Angular 5 并且 KendoUI 完全兼容!
从我在下面的评论中看到的错误来看,您似乎使用的是 KENDO UI 库的旧版本。 OpaqueToken 在 angular 4 中被弃用并在 5 中被删除,因此出现错误。
https://github.com/angular/angular/pull/18971
确保从 Kendo npm 存储库中获取最新的软件包。
如果您能与我们分享您的 package.json 将很有帮助,这样我们就可以了解您当前使用的软件包版本。
此外,如果您使用 KendoUI 设置了 私有注册表 ,请确保 删除 它来自你的 npm,因为 Telerik 已经远离它,它会阻止你获得最新的 npm 包。