【发布时间】:2017-06-19 02:28:31
【问题描述】:
AOT 使用 Kendo Angular2 NumericTextBox 和 MaskedTextBox 编译项目时,出现以下错误:
maskedtextbox.component.ngfactory.ts:275:35:提供的参数与调用目标的任何签名都不匹配。
maskedtextbox.component.ngfactory.ts:279:35:提供的参数与调用目标的任何签名都不匹配。
maskedtextbox.component.ngfactory.ts:283:35:提供的参数与调用目标的任何签名都不匹配。
numerictextbox.component.ngfactory.ts:203:41:属性“widgetClass”是私有的,只能在“NumericTextBoxComponent”类中访问
numerictextbox.component.ngfactory.ts:208:41:属性“numericClass”是私有的,只能在“NumericTextBoxComponent”类中访问
6.numerictextbox.component.ngfactory.ts:242:48:属性“hostBlur”受保护,只能在“NumericTextBoxComponent”类及其子类中访问。
这是我的 package.json 条目:
"@angular/common": "2.4.0",
"@angular/compiler": "2.4.0",
"@angular/compiler-cli": "2.4.0",
"@angular/core": "2.4.0",
"@angular/forms": "2.4.0",
"@angular/http": "2.4.0",
"@angular/platform-browser": "2.4.0",
"@angular/platform-browser-dynamic": "2.4.0",
"@angular/platform-server": "2.4.0",
"@angular/router": "3.4.0",
"@progress/kendo-angular-buttons": "0.14.0",
"@progress/kendo-angular-dialog": "0.14.1",
"@progress/kendo-angular-dropdowns": "0.24.4",
"@progress/kendo-angular-intl": "0.9.0",
"@progress/kendo-angular-grid": "0.7.0",
"@progress/kendo-angular-popup": "0.15.0",
"@progress/kendo-angular-upload": "0.12.0",
"@progress/kendo-data-query": "0.2.0",
"@progress/kendo-popup-common": "0.3.0",
"@progress/kendo-angular-inputs": "0.18.2",
"@progress/kendo-theme-default": "2.11.4",
"@telerik/kendo-dropdowns-common": "0.2.0",
"@telerik/kendo-intl": "0.12.0",
"@telerik/kendo-theme-default": "1.32.0",
"@telerik/kendo-draggable": "1.5.1",
"@telerik/kendo-inputs-common": "2.1.0",
AppModule 导入
import { DialogModule } from '@progress/kendo-angular-dialog';
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
import { PopupModule } from '@progress/kendo-angular-popup';
import { IntlService } from '@progress/kendo-angular-intl';
另一个模块导入
import { GridModule } from '@progress/kendo-angular-grid';
import { UploadModule } from '@progress/kendo-angular-upload';
import { InputsModule } from '@progress/kendo-angular-inputs';
【问题讨论】: