I have installed an Angular project using this command ng new --no-standalone my-text-editor
and I have followed the instructions on this link Angular Text Editor, after all the steps and running ng-serve
I kept getting the error as shown in the picture.
Error shown in the "Console" tab
Here is my code for the file app.module.ts:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { AngularMarkdownEditorModule } from 'angular-markdown-editor';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
AngularMarkdownEditorModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
I tried solving this by creating a config file and adding to the providers but still nothing solved
Refer to the angular-markdown-editor repo, You can do something like this using forRoot
:
AngularMarkdownEditorModule.forRoot({ iconlibrary: 'fa' })