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.
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