I have an application A1 containing module M1, which uses ngx-translate module.
Module M1 is exported by ng-packagr and used by application A2 which also uses ngx-translate module.
What i have noticed is TranslateHttpLoader loads the language files…
I am following the Stencil guide for configuring an angular output target here and am facing a problem when it comes to exporting the generated angular components to make them accessible in a production build.
The generated angular directory (from…
I'm trying to export my angular module as separate npm module.
So I'm trying to do it with npm ( "packagr": "ng-packagr -p ng-package.json"
All is going good until the "Compiling to FESM15":
I paste logs underneath:
ng-packagr -p…
I am receiving a build error when I try to run ng-packagr with material: 2.0.0-beta.12 as a dependency. It's looking for node_modules/@angular/packages/material which the packages folder doesn't exist in node_modules so I get ENOENT: no such file or…
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.
From my knowledge I must have a secondary entry…
I have library which builds with ng-packagr. I need to debug some code in this library, but within another project. How can I configure my library build script without any optimizations (like unnamed chunks and minimized code)?
I'm well aware of the arguments against this, please spare me the moralizing.
I'm porting an Angular 11 lerna bootstrap monorepo with a bespoke webpack setup to angular-cli and Angular 13.
Because the original project somehow emitted on error, there…
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 not a function
There is no code in the project…
I have my custom Angular library where I would like to implement ng2-nouislider in one of my components. Everything works fine but when I try to build my project I get this error:
error NG8007: The property and event halves of the two-way binding…
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 { NiceInterface } from '@foo/bar/componentx';
The…
I created a svg icons library using angular-cli@14 and svg-to-ts and published it.
In the demo project for the library, it works fine when I import any icon.
When I consume this package in real angular project I got this error.
Module not found:…
I am testing a 'ng-circle-progress' in my existing angular library where the NgCircleProgressModule has only .forRoot() method as initialization.
But it throws error while creating a build using below cmd.
ng build shared-lib --prod
//…
I would like a vendor.js to accompany my angular library JavaScript. (This excludes the ts-js transpilation and enables analysis of domain only code). When I add "vendorChunk": true to the architect/builder/options or…
I am trying to use ng-packagr to publish a jsx react component through an angular library. I have an angular app that consumes the library. The path of my component is ./projects/my-lib/src/lib/my-component.jsx. When I export it through the…
I am looking to publish a react component and web component from an angular library.
I followed a few tutorials that step you through creating a react component inside an angular library. For example you install react and react-dom into the…