无法采用角度5

时间:2019-04-01 13:51:32

标签: html css angular5

我正在使用角度2基本模板。后来我将角度版本更新为5,将cli更新为1.6.5。我根据需要使用了一些外部第三方包装。因此,在进行生产构建时,我面临一些问题。 谁能帮我解决这个问题。

所以在进行生产构建时,这就是我得到的错误。

  

'FancyImageUploaderModule'模板编译期间发生错误ERROR     装饰器不支持函数调用,但在'NgModule'中调用了'ɵmakeDecorator'       'NgModule'调用'ɵmakeDecorator'。   node_modules / rxjs / Subject.d.ts(16,22):错误TS2415:类“主题”错误地扩展了基类“可观察”。     属性“电梯”的类型不兼容。       类型“(操作员:操作员)=>可观察”不能分配给类型“(操作员:操作员)=>可观察”。         类型“可观察”不能分配给类型“可观察”。           类型“ T”不可分配给类型“ R”。   node_modules / rxjs / observable / dom / WebSocketSubject.d.ts(24,22):错误TS2415:类“ WebSocketSubject”错误地扩展了基类“ AnonymousSubject”。     属性“电梯”的类型不兼容。       类型'(operator:Operator)=> WebSocketSubject'不能分配给类型'(operator:Operator)=> Observable'。         类型“ WebSocketSubject”不可分配给类型“可观察”。           属性“ operator”的类型不兼容。             不能将类型“运算符”分配给类型“运算符”。               类型“ R”不可分配给类型“ T”。   node_modules/@types/lodash/common/object.d.ts(1689,12):错误TS2304:找不到名称“排除”。   node_modules/@types/lodash/common/object.d.ts(1766,12):错误TS2304:找不到名称“排除”。   node_modules/@types/lodash/common/object.d.ts(1842,34):错误TS2304:找不到名称“排除”。

这是我的package.json文件。

{
 "name": "CoreUI",
 "version": "1.0.0-alpha.4",
 "description": "Open Source Bootstrap Admin Template",
 "author": "",
 "url": "http://coreui.io",
 "copyright": "Copyright 2017 creativeLabs Łukasz Holeczek",
 "license": "MIT",
 "angular-cli": {},
 "scripts": {
   "ng": "ng",
   "start": "ng serve",
   "test": "ng test",
   "lint": "ng lint",
   "e2e": "ng e2e"
 },
 "private": true,
 "dependencies": {
   "@angular/animations": "^5.2.2",
   "@angular/common": "^5.2.2",
   "@angular/compiler": "^5.2.2",
   "@angular/core": "^5.2.2",
   "@angular/forms": "^5.2.2",
   "@angular/http": "^5.2.2",
   "@angular/platform-browser": "^5.2.2",
   "@angular/platform-browser-dynamic": "^5.2.2",
   "@angular/platform-server": "^5.2.2",
   "@angular/router": "^5.2.2",
   "@angular/upgrade": "2.4.9",
   "angular-split": "^1.0.0-rc.3",
   "angular2-fontawesome": "^0.9.3",
   "angular2-image-upload": "^1.0.0-rc.0",
   "angular2-multiselect-dropdown": "^2.2.1",
   "angular2-notifications": "^1.0.2",
   "angular2-ui-switch": "^1.2.0",
   "chart.js": "^2.5.0",
   "chart.piecelabel.js": "^0.10.0",
   "core-js": "2.4.1",
   "e-ngx-fileupload": "^1.2.0",
   "font-awesome": "^4.7.0",
   "lodash": "^4.17.11",
   "moment": "2.17.1",
   "mydatepicker": "^2.6.1",
   "mydaterangepicker": "^4.2.1",
   "ng2-bootstrap": "^1.4.0",
   "ng2-charts": "^1.5.0",
   "ng2-ckeditor": "^1.2.0",
   "ng2-drag-drop": "^3.0.2",
   "ng2-dragula": "^1.5.0",
   "ng2-fancy-image-uploader": "^2.0.1",
   "ng2-split": "^0.1.6",
   "ng2-split-pane": "^1.4.0",
   "ngx-bootstrap": "^2.0.3",
   "ngx-chips": "^1.6.7",
   "ngx-cookie-service": "^1.0.10",
   "ngx-quill": "^3.4.0",
   "ngx-quill-editor": "^2.2.2",
   "ngx-toggle-switch": "^1.3.9",
   "rxjs": "5.2.0",
   "ts-helpers": "1.1.2",
   "zone.js": "0.7.2"
 },
 "devDependencies": {
   "@angular/cli": "^1.6.5",
   "@angular/compiler-cli": "^5.2.2",
   "@types/jasmine": "2.5.45",
   "@types/lodash": "^4.14.123",
   "@types/node": "7.0.8",
   "codelyzer": "2.0.1",
   "jasmine-core": "2.5.2",
   "jasmine-spec-reporter": "3.2.0",
   "karma": "1.5.0",
   "karma-chrome-launcher": "2.0.0",
   "karma-cli": "1.0.1",
   "karma-coverage-istanbul-reporter": "0.3.0",
   "karma-jasmine": "1.1.0",
   "karma-jasmine-html-reporter": "0.2.2",
   "protractor": "5.1.1",
   "ts-node": "2.1.0",
   "tslint": "4.5.1",
   "typescript": "^2.6.2"
 }
}

0 个答案:

没有答案