froala / angular-froala-wysiwyg

Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
734 stars 201 forks source link

Unexpected value 'FroalaEditorDirective' #15

Closed TekSiDoT closed 7 years ago

TekSiDoT commented 8 years ago

Following the sample implementation the following snippet causes Uncaught Error: Unexpected value 'FroalaEditorDirective' declared by the module 'AppModule'(…):

app.module.ts: import { FroalaEditorDirective, FroalaViewDirective } from '../../node_modules/angular2-froala-wysiwyg/lib/froala.directives';

@NgModule({ imports: [ ... ], declarations: [ AppComponent, HomeComponent, ..., FroalaEditorDirective, FroalaViewDirective ], providers: [ ApiService, XmlService, LoggingService, WebSocketService ], bootstrap: [AppComponent] })

stefanneculai commented 7 years ago

Please follow: https://github.com/froala/angular2-froala-wysiwyg#use-with-angular-cli.

TekSiDoT commented 7 years ago

Most of our projects are not built on or with angular-cli.

To be honest we have moved on to another editor, as the Angular2 lib and its support do not seem to be a priority for Froala right now.

stefanneculai commented 7 years ago

That is fine, @TekSiDoT. Could you please let us know what are you building with? We currently have integrations for angular-cli, webpack, system.js, aot and jit.

TekSiDoT commented 7 years ago

Back then, the project we tried Froala on was built using webpack / jit.