ElemeFE / element-angular

Element for Angular
https://element-angular.faas.ele.me
MIT License
530 stars 121 forks source link

Not compatible with angular 6 #136

Closed guysenpai closed 1 year ago

guysenpai commented 6 years ago

Issue Type:

Version & Environment:

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 6.1.3
Node: 9.11.2
OS: darwin x64
Angular: 6.1.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.3
@angular-devkit/build-angular     0.7.3
@angular-devkit/build-optimizer   0.7.3
@angular-devkit/build-webpack     0.7.3
@angular-devkit/core              0.7.3
@angular-devkit/schematics        0.7.3
@angular/cdk                      6.4.5
@angular/cli                      6.1.3
@angular/flex-layout              6.0.0-beta.17
@angular/material                 6.4.5
@angular/pwa                      0.7.3
@ngtools/webpack                  6.1.3
@schematics/angular               0.7.3
@schematics/update                0.7.3
rxjs                              6.2.2
typescript                        2.7.2
webpack                           4.9.2

Description: When I build my angular 6 application I have a build error about angular-element module.

ERROR in node_modules/element-angular/release/input/input.d.ts.ElInput.html(35,12): : Property 'validating' does not exist on type 'ElInput'.
node_modules/element-angular/release/date-picker/picker-panel.d.ts.ElDatePickerPanel.html(34,15): : Operator '===' cannot be applied to types '"date"' and '"month"'.
node_modules/element-angular/release/date-picker/picker-panel.d.ts.ElDatePickerPanel.html(54,15): : Property 'disabledDate' does not exist on type 'ElDatePickerPanel'.
node_modules/element-angular/release/date-picker/picker-panel.d.ts.ElDatePickerPanel.html(59,15): : Property 'disabledDate' does not exist on type 'ElDatePickerPanel'.
node_modules/element-angular/release/upload/upload.d.ts.ElUpload.html(5,41): : Property 'lifecycle' is protected and only accessible within class 'ElUploadProps' and its subclasses.
node_modules/element-angular/release/tree/tree-item.d.ts.ElTreeItem.html(14,11): : Expected 0 arguments, but got 1.
YealZoy commented 5 years ago

nobody answer you 🙈

evgwed commented 4 years ago

My answer: remove this package from my project 😢

@Yukimir @yinjs watch this issue, please