kolkov / angular-editor

A simple native WYSIWYG editor component for Angular 6 -14+
https://angular-editor.kolkov.ru
MIT License
676 stars 360 forks source link

build fails for Angular 13 #464

Open da-sann opened 2 years ago

da-sann commented 2 years ago

Hi! Recetly updated to latest ( 2.1.0 because previous version become deprecated) version and momentally got error on build

/node_modules/@kolkov/angular-editor/fesm2015/kolkov-angular-editor.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js): TypeError: Cannot create property 'message' on string 'D:\a\1\s\BinderCloud.App\node_modules\@kolkov\angular-editor\fesm2015\kolkov-angular-editor.mjs: This application depends upon a library published using Angular version 14.0.1, which requires Angular version 14.0.0 or newer to work correctly. Consider upgrading your application to use a more recent version of Angular.

and

Error: node_modules/@kolkov/angular-editor/lib/ae-button/ae-button.component.d.ts:9:18 - error TS2314: Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s).

9 static ɵcmp: i0.ɵɵComponentDeclaration<AeButtonComponent, "ae-button", never, { "iconClass": "iconClass"; "title": "title"; }, { "buttonClick": "buttonClick"; }, never, never, false>;

We currently using ANgular 13 on our project, and based on info this package is " 2.0.0 and above - for Angular v13.0.0 and above "

pepe19000 commented 2 years ago

npm uninstall @kolkov/angular-editor and after npm install @kolkov/angular-editor@2.0.0

helped me :)

etienne582 commented 2 years ago

Fails in angular 12 also, whereas 2.0.0 don't.

lucafulgenzi commented 2 years ago

@pepe19000 Sure it works by downgrading to version 2.0.0, but doing so will not allow you to take advantage of the latest and most interesting feature, custom buttons PLS fixit

Elvynia commented 2 years ago

I am using Angular 13 and I can confirm version 2.0.0 works and version 2.1.0 fails (with same error as mentioned in this issue). Also using Node 14.18.3 and NPM 6.14.15.