666 questions
1
vote
1
answer
91
views
Angular Library Routing Not Working When Used Inside Angular 19 App
I'm working on an Angular 19 app that uses a custom Angular library, and I'm having trouble getting the routing inside the library to work properly.
The app is a legacy app and all the components are ...
-1
votes
0
answers
46
views
Failed to run Angular Library in a project in different versions
I made an Angular library which I wanted to support some older versions of Angular. But when I run in some Angular projects it fails to run
In Angular 18, it returns this error
6:56:05 PM [vite] ...
1
vote
1
answer
56
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,...
0
votes
2
answers
188
views
How to import font assets?
I am trying to create an Angular 19 library with a personalized fonts linked directly into a global SCSS file.
On build time, I have the exact same error being raised by builder:
src/lib/label/label....
3
votes
0
answers
173
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
1
answer
242
views
Using input Signal in Angular Library
When using an Angular (19) Library project within another Angular 19 Application project (these are separate projects) using npm link, I get following runtime error when building the application for ...
1
vote
2
answers
51
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 { ...
0
votes
0
answers
31
views
Angular Multi Library in a Workspace
In order to manage my own projects better in Angular, I will create some libraries named ngx-suffa in the workspace.
Each library will be under the same workspace.
For example:
@ngx-suffa/core, @ngx-...
1
vote
1
answer
86
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
35
views
How to maintain module level theme mixins css files while creating angular library?
I am creating angular library which exposes most of the feature
modules along with global css.
The global CSS file again imports CSS files which contains theme
mixins for each modules as follows:
...
1
vote
1
answer
111
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
2
answers
42
views
Angular Singlton Generic Service with dynamic return type
i have this event management service in my angular application.
i want to set the return type of the OnEvent() method dynamiclly and i want to set the type where i inject the service in my components.
...
0
votes
0
answers
184
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 ...
1
vote
1
answer
258
views
Angular library secondary entry points that reference each other , use via npm link
All the examples I find for developing libraries in Angular always have the library in the same workspace as the app, but I can't do so.
I have three different Angular 18 workspaces, one for libraryA, ...
0
votes
0
answers
82
views
Why tsconfig.json in agnular does not use proper export in package.json from library?
I got my library - "my-lib" and consumer application "my-app"
in package.json of my-lib i got exports:
".": {
"types": "./index.d.ts",
...