kolkov / angular-editor

A simple native WYSIWYG editor component for Angular 6 -14+
https://angular-editor.kolkov.ru
MIT License
674 stars 361 forks source link

ERROR in Unexpected value 'AngularEditorModule in PATH/node_modules/@kolkov/angular-editor/bundles/kolkov-angular-editor.umd.js' imported by the module 'AppModule in "PATH". Please add a @NgModule annotation. #331

Open larissaleallu opened 3 years ago

larissaleallu commented 3 years ago

happens when building the project : ng build --prod ERROR in Unexpected value 'AngularEditorModule in PATHnode_modules/@kolkov/angular-editor/bundles/kolkov-angular-editor.umd.js' imported by the module 'AppModule in "PATH APPMODULE". Please add a @NgModule annotation.

app.module

@NgModule({
  declarations: [
    AppComponent,
    MyComponent,
  ], 

  imports: [
    BrowserModule,
    HttpClientModule,
    AppRoutingModule,
    AngularEditorModule
  ],

image image

larissaleallu commented 3 years ago

If I import angular editor from @ kolkov / angular-editor when doing ng serve the error happens as shown in the image below: image

LyonOconner commented 2 years ago

any solution ?