angular-froala-wysiwyg icon indicating copy to clipboard operation
angular-froala-wysiwyg copied to clipboard

Angular 7 (perhaps 8 too) no longer compile

Open AshMcConnell opened this issue 3 years ago • 2 comments

Hi Folks,

I'm getting an issue after upgrading from 2.x to 3.2.2. I believe there was a change in angular when moving from 8 to 9 that means that angular-froala-wysiwyg no longer compiles in 8 or less (although I'm using 7).

I'm getting the following errors: -

ERROR in node_modules/angular-froala-wysiwyg/editor/editor.directive.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-froala-wysiwyg/editor/editor.directive.d.ts(23,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-froala-wysiwyg/editor/editor.directive.d.ts(38,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'. node_modules/angular-froala-wysiwyg/editor/editor.directive.d.ts(39,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDefWithMeta'. node_modules/angular-froala-wysiwyg/editor/editor.module.d.ts(6,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'. node_modules/angular-froala-wysiwyg/editor/editor.module.d.ts(7,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDef'. node_modules/angular-froala-wysiwyg/index.d.ts(7,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'. node_modules/angular-froala-wysiwyg/index.d.ts(8,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDef'. node_modules/angular-froala-wysiwyg/view/view.directive.d.ts(7,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/angular-froala-wysiwyg/view/view.directive.d.ts(9,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'. node_modules/angular-froala-wysiwyg/view/view.directive.d.ts(10,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDefWithMeta'. node_modules/angular-froala-wysiwyg/view/view.module.d.ts(6,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDefWithMeta'. node_modules/angular-froala-wysiwyg/view/view.module.d.ts(7,21): error TS2694: Namespace '"C:/Dev/bucardo-web/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDef'.

Is there anything that can be done as a workaround? We are hoping to upgrade soon to angular 9 (or 10 perhaps), but we aren't quite ready yet.

Thanks for your help, Ash

AshMcConnell avatar Oct 05 '20 10:10 AshMcConnell

Can you try #329 ?

leo6104 avatar Oct 05 '20 15:10 leo6104

Thanks for your help, but we've decided to take the plunge and move to Angular 9 (or perhaps 10)

AshMcConnell avatar Oct 06 '20 10:10 AshMcConnell