open app.config.ts and flow these steps:
import { provideMonacoEditor } from 'ngx-monaco-editor-v2';
providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideMonacoEditor(), ],