angular-email-editor
angular-email-editor copied to clipboard
email-editor doesn't work
ERROR in src/app/app.module.ts(5,35): error TS2307: Cannot find module 'email-editor'.
solved.... ng build firts
ng build isn't fixing it for me
HI, It's seems that a wrong import definition into src/app/app.module.ts file.
Replace import component by module, following this:
import { EmailEditorComponent } from '../../projects/email-editor/src/lib/email-editor.component'; must be: import { EmailEditorModule } from '../../projects/email-editor/src/lib/email-editor.module';
and
.... imports: [ BrowserModule, EmailEditorModule ],
I having similar issue "HtmlEditorModule" not found, after ng build module import issue resolved but getting error "export 'defineInjectable' was not found in '@angular/core' my package.json file is "dependencies": { "@angular/animations": "5.2.0", "@angular/cdk": "5.2.5", "@angular/common": "5.2.0", "@angular/compiler": "5.2.0", "@angular/core": "5.2.0", "@angular/forms": "5.2.0", "@angular/material": "5.2.5", "@angular/platform-browser": "5.2.0", "@angular/platform-browser-dynamic": "5.2.0", "@angular/router": "5.2.0", "@ng-bootstrap/ng-bootstrap": "1.0.0", "angular-email-editor": "^0.7.1", }
I having similar issue "HtmlEditorModule" not found, after ng build module import issue resolved but getting error "export 'defineInjectable' was not found in '@angular/core' my package.json file is "dependencies": { "@angular/animations": "5.2.0", "@angular/cdk": "5.2.5", "@angular/common": "5.2.0", "@angular/compiler": "5.2.0", "@angular/core": "5.2.0", "@angular/forms": "5.2.0", "@angular/material": "5.2.5", "@angular/platform-browser": "5.2.0", "@angular/platform-browser-dynamic": "5.2.0", "@angular/router": "5.2.0", "@ng-bootstrap/ng-bootstrap": "1.0.0", "angular-email-editor": "^0.7.1", }
@omprakash-sit I had the same issue. angular-email-editor works with angular 7+. I had to upgrade my angular version from 5 to 7.
Its not working with angular 14 version.
error NG6002: 'EmailEditorModule' does not appear to be an NgModule class.