angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

build fails for Angular 13

Open da-sann opened this issue 3 years ago • 4 comments

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 "

da-sann avatar Jun 15 '22 10:06 da-sann

npm uninstall @kolkov/angular-editor and after npm install @kolkov/[email protected]

helped me :)

pepe19000 avatar Jun 15 '22 11:06 pepe19000

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

etienne582 avatar Jun 16 '22 15:06 etienne582

@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

lucafulgenzi avatar Jun 19 '22 14:06 lucafulgenzi

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.

Elvynia avatar Jun 24 '22 12:06 Elvynia