660 questions
0 votes
1 answer
152 views
Angular standalone components library and NGRX slices
I'm migrating an application to standalone components using the following: ng generate @angular/core:standalone I've already migrated every component to standalone. I now need to remove unnecesary ...
1 vote
1 answer
72 views
In Angular 12, how do I ship my library's assets?
I have a standard Angular 12 library workspace that I created through "ng generate library my-lib". my-lib has a component that shows an image asset. My consumer app uses my-lib component ...
1 vote
1 answer
291 views
How to handle module imports specific to a library in an angular standalone app?
I have a library material-extension inside my angular workspace, in which I'm creating some components I require but Angular Material is lacking. In this extension I've installed the module ngx-editor,...
3 votes
0 answers
213 views
Angular 17 Library build size is too large (40MB)
I have made an Angular 17 library that I want to publish, but I have noticed that one file in particular in my build is very large. My dist folder has a fesm2022 directory, which contains an .mjs file ...
1 vote
2 answers
75 views
How to use a service from a library project, which has some dependecy like toastr, in another angular library project
I have a one service in my library project which have dependency on toastr in my angular project import { Injectable } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { ...
2 votes
1 answer
161 views
Troubleshooting NG0203 Error: Issues with Angular Library and HttpClient Injection in Production Build
I wasn't able to solve it. I'm counting on your help. I have an Angular application and a library. In the library, I have a service where I inject HttpClient. I set HttpClient as a provider in the ...
1 vote
1 answer
196 views
How to copy the README.md file, inside an angular project before publishing it to npm
I've created a library with Angular libraries This is my pretty default project structure - README.md - package.json - angular.json - projects - my-project - ng-package.json - package.json ...
0 votes
0 answers
238 views
Angular 18 Library & Showcase - ng test doesn't find Spec files
tldr; Trying to determine why running ng test library is returning Executed 0 of 0 SUCCESS. I have an Angular Workspace setup with two projects: Workspace Projects Library Showcase The Library ...