每次我尝试将FullCalendarModule
导入到 Angular 中的AppModule
文件中时,都会出现此错误:
node_modules/@fullcalendar/core/main.d.ts(136,64)中的错误:错误TS2304:找不到名称“ Parameters”。 node_modules/@fullcalendar/core/main.d.ts(584,10):错误TS2370:rest参数必须为数组类型。 node_modules/@fullcalendar/core/main.d.ts(588,75):错误TS2370:rest参数必须为数组类型。 node_modules/@fullcalendar/core/main.d.ts(588,119):错误TS2370:rest参数必须为数组类型。 node_modules/@fullcalendar/core/main.d.ts(2457,74):错误TS1122:元组类型元素列表不能为空。 node_modules/@fullcalendar/core/main.d.ts(2458,51):错误TS2370:rest参数必须为数组类型。 node_modules/@fullcalendar/core/main.d.ts(2460,9):错误TS2370:rest参数必须为数组类型。 node_modules/@fullcalendar/core/main.d.ts(2463,9):错误TS2370:rest参数必须为数组类型。
我已经尝试过更改package.json文件中的各种版本。
我的package.json
:
"dependencies": {
"@angular/animations": "^6.1.0",
"@angular/cdk": "^6.1.0",
"@angular/common": "^6.1.0",
"@angular/compiler": "^6.1.0",
"@angular/core": "^6.1.0",
"@angular/forms": "^6.1.0",
"@angular/http": "^6.1.0",
"@angular/material": "^6.1.0",
"@angular/platform-browser": "^6.1.0",
"@angular/platform-browser-dynamic": "^6.1.0",
"@angular/router": "^6.1.0",
"@auth0/angular-jwt": "^3.0.1",
"@fullcalendar/angular": "^4.3.0p",
"@fullcalendar/core": "^4.3.0",
"@fullcalendar/daygrid": "^4.3.0",
"bootstrap": "^4.3.1",
"bootstrap-4-grid": "^3.1.0",
"core-js": "^2.5.4",
"moment": "^2.24.0",
"ngx-bootstrap": "^5.1.0",
"rxjs": "~6.2.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.8.9",
"@angular/cli": "6.1.0",
"@angular/compiler-cli": "6.1.0",
"@angular/language-service": "6.1.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/jquery": "^3.3.31",
"@types/node": "~8.9.4",
"codelyzer": "~4.3.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~2.9.2"
}
我的AppMoule
的{{1}}导入:
FullCalendar