Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
3 replies
61 views

I have an Angular component in a private npm package using ng-packagr and hosted on AWS (CodeArtifact). The purpose of the component is to be a reactive form field that shows and hides errors based on ...
Alex Davis's user avatar
1 vote
1 answer
160 views

I migrated one of our projects from Angular 18 to Angular 20. The projects is strutured in this way: project_name -- projects ---- frontend ---- lib ------ src ------ lib -------- i18n -------- public-...
AngelPoyel's user avatar
0 votes
2 answers
599 views

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....
Corentin THIBAUD's user avatar
1 vote
1 answer
66 views

I have created a test library (NgxTest) using ng-packagr, which makes use of the APP_BOOTSTRAP_LISTENER injection token: import { APP_BOOTSTRAP_LISTENER, ComponentRef, NgModule } from "@angular/...
Usche's user avatar
  • 191
1 vote
1 answer
196 views

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 ...
Raphaël Balet's user avatar
1 vote
1 answer
174 views

In Angular when using a CommonJS dependency like moment one gets a warning like CommonJS or AMD dependencies can cause optimization bailouts. For more information see: https://angular.dev/tools/cli/...
Mikelgo's user avatar
  • 585
1 vote
1 answer
465 views

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, ...
menrodriguez's user avatar
0 votes
1 answer
69 views

Our Angular project has evolved to have a bunch of functions that don't really belong in any class (in addition to all the normal classes of course). We now need a new Angular project that wants to ...
tony's user avatar
  • 2,412
0 votes
1 answer
462 views

I'm in the process of creating an angular library so that I can reuse certain functionalities between 2 projects without having to copy and paste. I'm faced with a problem: How to add images for use ...
Steeven Delucis's user avatar
1 vote
1 answer
684 views

I have built an Angular library that contains a component and a directive which are intrinsically linked. That is the component uses the directive. Everything works fine other than to successfully use ...
Andrew HB's user avatar
  • 412
1 vote
1 answer
823 views

I have created an angular custom package (angular 17.3) in which there is a service. After publish, I install the package and am able to see the service. But I have en error An unhandled exception ...
martin's user avatar
  • 40
1 vote
2 answers
3k views

The project I'm working on needs to split some components into a shared library. I'm using Angular 18 with standalone components. I've found a lot of answers / articles for these issues online, but ...
jmarkyston's user avatar
0 votes
1 answer
1k views

I am currently upgrading from Angular 16 to Angular 18. I read on the changes that there is a new build system being implemented for the newer version. However, most of my packages are using "ng-...
Dusty's user avatar
  • 11
-1 votes
1 answer
561 views

I'm using Angular v17. I'm building a custom library with a stylesheet that I'd like to import using @import "@my-company/ngx-luai/styles/index"; in my application's style.scss file. My ...
Chris Stillwell's user avatar
3 votes
0 answers
2k views

Recently I've started splitting up a large angular project into seperate libraries. This worked fine until I tried to create a library with the css variables that are used by all other libraries. This ...
Joren Goossens's user avatar
0 votes
1 answer
247 views

i'm upgrading a private library (privLib) to Angular 13, so i can migrate all other projects, but when imported into a project one of the services uses moment and throws an error: "ERROR ...
Teuz's user avatar
  • 1
1 vote
0 answers
145 views

Suppose an Angular workspace with two libraries inside (e.g. projects/libA and projects/libB). In libA I'm importing code from libB import { ComponentX } from '@myscope/libB'; ComponentX is exported ...
Eugeny89's user avatar
  • 3,763
0 votes
0 answers
159 views

I have a monorep using @nx and @angular and I have setup a folder structure as follows: libs - ui-components --_components ---atoms ----alert ---molecules ----datepicker --alert --datepicker As you ...
r3plica's user avatar
  • 13.5k
2 votes
0 answers
1k views

I'm working on an Angular library in a monorepo comprised of multiple projects which we publish separately and use internally across multiple apps. Our tooling has been fairly archaic until now. I'm ...
Matthew Marichiba's user avatar
1 vote
2 answers
734 views

In Angular (see spec below), trying to generate a large library, thus running ng build <project>, we obtain ❌ Generating "fesm2015" Invalid string length Indeed, fesm2020 build ...
Deleter's user avatar
  • 812
0 votes
1 answer
277 views

I have a Angular lib inside a Nx workspace... The lib consumes code from another local lib for some shared TS code. The shared libs path is defined in the tsconfig paths setting: "paths": { ...
spierala's user avatar
  • 2,757
1 vote
0 answers
1k views

It's my first time trying to build a library in Angular, so I'm a little bit lost here. When I style my components with the assigned stylesheets, nothing follows into the actual library, leaving my ...
cozybutmessy's user avatar
0 votes
1 answer
569 views

When I run npx ng build @mls-ops/tests I have an error: Building Angular Package × Compiling with Angular sources in Ivy partial compilation mode. Can't find stylesheet to import. ╷ 1 │ @import '...
Joe Kappa's user avatar
1 vote
0 answers
27 views

I have a angular lib and it is named 'ngx-qwe'. The 'ngx-qwe' quote a npm package 'ngx-asd'. The 'asd' package has build error when i build 'qwe' I use 'ng build ngx-qwe --configuration production' to ...
Allen's user avatar
  • 11
2 votes
0 answers
220 views

I have an angular library with multiple secondary entry points: a and b. I do also have some code which is shared accross a and b. The shared code is located in another secondary entry point shared. ...
Mikelgo's user avatar
  • 585
1 vote
0 answers
568 views

I have a shared web/nativescript library. All nativescript files have a **/*.tns.ts filename format. Nativescript handles replacing any file with the same name but without the tns part with its tns ...
crowmagnumb's user avatar
  • 7,267
1 vote
1 answer
841 views

I have an Angular 12 library project that built fine in the past (year or two ago), but now it is failing. The only output I'm seeing is as follows: Building Angular Package moduleName.startsWith is ...
GS-Scooter's user avatar
2 votes
1 answer
124 views

Is it possible to resolve SASS contained in a workspace library using an approach that is similar to resolving ts files from an application within the same workspace? For context I'll setup a real ...
Ole's user avatar
  • 48.2k
1 vote
1 answer
2k views

I have a component X which imports a component Y. In componentx.model.ts I defined some types and interfaces. In component Y I would like to use one of these interfaces so I import it with import { ...
Juuro's user avatar
  • 1,726
3 votes
1 answer
2k views

We have an Angular library where we have multiple modules. Each module can be imported and used independently in parent projects. In one of those modules' component we have an import from a dependency ...
akcasoy's user avatar
  • 7,318
1 vote
2 answers
5k views

In Angular Material (AM) we can import single module from the @angular/material like this: import { MatButtonModule } from '@angular/material' I would like to re-use this approach also for my library, ...
mimo's user avatar
  • 6,967
1 vote
1 answer
371 views

I have an Angular library which has secondary entries. From one of those, I'd like to export a .scss file. In my .tsconfig, I create a path: ... path:{ "@my-entry/*":["my-entry/*"]...
kodeaben's user avatar
  • 2,115
2 votes
1 answer
1k views

I've built an angular component library in an NX workspace. For several weeks I've been struggling to get my angular library to work properly. The library contains some 50 components with their ...
Pieterjan's user avatar
  • 3,719
2 votes
0 answers
458 views

I got an error while building the source code using ng-packagr with Secondary Entry Points. My project structure: enter image description here I followed the guide from official repo https://github....
Travis Tran's user avatar
1 vote
1 answer
1k views

I have authored a library for extracting environment variables that are set from server-side rendering. This library provides a base class to extend. getEnvironmentValues() has been omitted for ...
Brandon Taylor's user avatar
0 votes
1 answer
770 views

I have a problem when I was execute npm run build. In the terminal an error appears: No provider for InjectionToken ng.v5.defaultTsConfig! (InjectionToken ng.v5.packageTransform -> InjectionToken ...
Doctor Robot's user avatar
0 votes
0 answers
1k views

I use angular 13.3. I have a project that name is "pazh-base-source" that some of my base component is in it such as pazh-component.ts . I want to use this components in my main project. I ...
Meraj Seraji's user avatar
2 votes
2 answers
1k views

I am trying to create an angular library in which one of the service has to make use of web-sdk.js file by importing it. Everything is working perfectly fine when I create that service inside of the ...
DuckDrick's user avatar
0 votes
0 answers
116 views

Our angular application is getting refactor to be split up into multiple small libraries. However we are having problems creating the links in between the libraries. Most articles explain in details ...
Stefan's user avatar
  • 15k
0 votes
2 answers
921 views

I have an Angular 13 library on the go. It works with the other modules I have already got in there, but this new module I'm moving into place uses material, and it's not happy. The new module itself ...
Krenom's user avatar
  • 2,128
14 votes
1 answer
6k views

I have a monorepo using NX & Angular and I am publishing some libs to NPM and i have the following scenario apps only_App libs lib_A // v1.0.0 lib_B // v1.0.0 lib_C // v1.0.0 lib_A ...
Pato's user avatar
  • 219
3 votes
0 answers
807 views

I recently upgraded my project to Angular 13, I noticed that the new ng-packgr 13 bundles in .mjs extension by default. I have lots of code that uses require() to import some static assets and files. ...
vp310's user avatar
  • 320
1 vote
1 answer
402 views

After migration to [email protected], [email protected] and Angular@13 I am not able to publish package generated by ng-packager to npm repository. package.json: { "name": "@me/ng13", "...
Mickey P's user avatar
  • 181
2 votes
1 answer
5k views

With Angular 13 and the ng-packagr when we publish SASS mixins with a library we need to add the library to exports in package.json and also declare an assets block in ng-package.json. These are the ...
Ole's user avatar
  • 48.2k
4 votes
0 answers
1k views

In Angular 13 the main app compiles in .js format but when we build library with ng build, output format are .mjs files Can we build libs to .js with ng build in Angular 13? I'm trying to use built ....
Sergsar's user avatar
  • 41
0 votes
1 answer
327 views

Can I use ng-packagr to build library with one script file that can run on the browser in the html by import as <script src="bundle.js"></script>? For example I have main.ts that ...
Jon Sud's user avatar
  • 11.9k
2 votes
1 answer
2k views

I am creating angular library, and I have some scss files in my-lib/src/styles and I include those files in component scss files. For instance: @import 'src/styles/_tokens.scss'; When I build the ...
Aleksa's user avatar
  • 3,154
1 vote
0 answers
1k views

I'm trying to make an angular library with secondary entry points. I have 2 entry points: input and select: 📦library ┣ 📂assets ┃ ┗ 📜_all.scss ┣ 📂select ┃ ┣ 📂src ┃ ┃ ┣ 📂components ┃ ┃ ┃ ┗ 📂...
Nika Kurashvili's user avatar
0 votes
1 answer
362 views

Since upgrading to Typescript 4.4.2 (needed to support Angular 13), the require syntax is no longer supported. Now it seems I must use this syntax instead: import * as d3ContextMenu from 'd3-context-...
HankScorpio's user avatar
  • 3,651
9 votes
3 answers
9k views

Im upgrading a private angular library/package (my-lib) so i can migrate all other projects, but when imported into a project one of the services uses moment and throws an error: "ERROR TypeError:...
Nuno Gonçalves's user avatar

1
2 3 4 5 6