I am building a library which contains a custom icon font. However, when I build my library using ng build --prod, the assets folder is not included in the build, which means icons do not show up when using the production build.
I've…
I have an Angular CLI workspace containing two library projects, foo and bar. When I build the second of the two libraries, foo, the build fails with the following error:
error TS6059: File '/code/projects/bar/src/lib/types.ts' is not under
…
Angular's i18n is great, and tools like ng-packagr makes component library packaging extremely easy, but can they be combined?
What if i want to package and distribute a component library having translatable components? Is it possible? How do I…
When using ng-packagr to package up one project @my/common-util, there are no problems. This class contains an abstract class called AbstractPerson in abstract-person.ts.
In another project called @my/common-impl, another Person class was created…
Upon building & packaging an Angular 6 library, I can't seem to be able to instruct the Angular CLI to copy the library's assets into the dist/assets folder on every build.
Assuming the project's folder structure is this -
- dist
- e2e
-…
When building an Angular Library application, is there an automated way to keep the root level package.json and the library application's package.json (e.g. under projects/my-library) file versions in sync when using npm version commands?
When I use…
As you know, the "ng g library" approach helps us with the creation of libraries of reusable components. But what if I wanted those components to be compiled into web components... through the support of Angular Elements? Not only that but also that…
I am building a library with Angular 6.1.0
ng new lib-demo
ng generate library my-lib
All the articles advise running the build for the library with a --prod flag like so:
ng build my-lib --prod
However, this throws an error
Configuration…
I'm writing an Angular 6 Library and cannot figure out how to step into the typescript.
I generated the app using: ng new mylibapp
I then added the library using: ng g library @abc/cool-lib -p abc
when I perform: ng build @abc/cool-lib
it generates…
WARNING: No name was provided for external module 'moment' in output.globals – guessing 'momentImported'
WARNING: No name was provided for external module 'odata-parser' in output.globals – guessing 'parser'
I receive this message when I try to…
I am trying to create what I believe is called a secondary entry point into my angular npm package. I want the following two entry points
@scope/data-service
@scope/data-service/models
Using the angular-cli to generate the base package generates…
I have a pure javascript library that users can install via npm. I want to add/create an Angular "wrapper" to this library so that it can be used seamlessly within Angular projects but I am not sure how to do this. I am using Angular-cli v6.
This…
I have a library that I'm able to compile with Angular 9. But if I change the flag to --prod, which practically makes "enableIvy": false then I get
[error] RangeError: Maximum call stack size exceeded
at Object.pathIsRelative…
I am working on an Nx powered monorepo, building a bunch of libs written in angular and packaged with ng-packagr.
When building the sources I am seeing a bunch of warnings like this:
WARNING: "DomSanitizer" is imported from external module…