216 questions
0 votes
1 answer
73 views
Strange behavior in compiled Angular 18 application TypeError: this._serviceXXXXXXXX is not a function
We are facing strange error in our application, some users facing problems with export functionality. Code below is what we have in our codebase: exportProcess = this.exportProcessSubject.pipe( ...
0 votes
1 answer
92 views
'FormsModule' does not appear to be an NgModule class
I am trying to import the FormsModule but i get this error 'FormsModule' does not appear to be an NgModule class. here is my code import { BrowserModule } from '@angular/platform-browser'; import { ...
1 vote
1 answer
88 views
ng-katex library is compatible with Angular 18?
I have this issue with ng-katex library since I installed Angular 18 on my project. I'm not able to solve this problem but I need this library for my project. How to make compatible "ng-katex&...
0 votes
0 answers
106 views
Error: Emit attempted before Angular Webpack plugin initialization
I have an angular app and recently it started giving the error mentioned below. I tried to research online but there is minimal information on the web on this issue. I have tried disabling ivy and aot,...
0 votes
1 answer
222 views
How do I find out what causes a "Debug Error" in TypeScript's compiler?
When running nx serve (using NRWL NX) on my TypeScript project, the build now fails with this error: <my-file>.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/...
0 votes
0 answers
107 views
Dynamic Angular component with template from string
I have to dynamically (at runtime) create a component with template built of string. This string contains some tags that need to be replaced by Angular components. For example HTML template: <div ...
0 votes
1 answer
100 views
Sharing Angular Modules with Ivy Compilation Requirement Between Two Projects
Question: I have two separate Angular projects that share certain common modules. We've established a private GitHub NPM repository to manage these shared resources. However, one of these common ...
0 votes
2 answers
3k views
After upgrading my application from Angular 14 to 16, I am getting 100's of errors in npm packages that I have used
I upgraded my angular application from v14 to v16. Since there were so many peer dependencies I used --force flag to upgrade. Now when I compile getting so many errors as shown below in screenshot. ...
6 votes
0 answers
1k views
Fix errors to upgrade old module for Angular 16
I've been using this Modal module for my Angular projects, however today, when upgrading to Angular 16, it stoped working with this error: 'SimpleModalModule' does not appear to be an NgModule class. ...
0 votes
1 answer
4k views
Using @ag-grid-community/angular version <28 with Angular 16
Did anyone figure out a way to use @ag-grid-community/angular version prior to Ivy support (<28) with Angular 16 ? In Angular 16 they've removed the deprecated entry components and ngcc, so any ...
1 vote
2 answers
2k views
angular 15 truely dynamic components with compileModuleAndAllComponentsAsync
I am in the middle of migrating of project from angular 8 to 15 The key feature of app is dynamic product cards, template for them is arbitrary html which is loaded from server and not known during ...
3 votes
2 answers
2k views
Angular component not rendering when passed as a string in a innerHtml attribute
I use an api that returns some html. Angular components are used in the html code but not shown in the application. How can I show an angular component when it is stored as a string? StackBlitz demo
2 votes
1 answer
2k views
Angular 13 Update "Duplicate identifier" Error
I am maintaining a private npm-package that provides angular-components. I am trying to update the package to angular 13 (from angular 12) and got everything to work, so I released a new version to ...
0 votes
1 answer
2k views
Can I exclude features (routes, components...) in my Angular application during Build time depending on a env file?
I would like to have two versions of my Application with the same codebase. One Version should for example include the "registration" feature and the other one not. Can I configure Angular ...
1 vote
1 answer
533 views
Angular components loaded from different module not rendered in dynamic compiled component
Our SaaS need to offer different home pages for different customers. Our approach is to have the different templates in the database. We also have components defined in a different module that must be ...