I have built an Angular 6 Library module following this guide and a dummy application running along my library so I can import and test modules during development.
The Library Module I am importing from the Library has child routes. Which I think is…
I got the following warning in my cli and was wondering what was the new allowedNonPeerDependencies doing different.
WARNING: Option "whitelistedNonPeerDependencies" is deprecated: Use "allowedNonPeerDependencies" instead.
When compiling an Angular library, I am getting this error concerning rootDir of my sub libraries
library/services/src/public-api.ts:31:15 - error TS6059: File 'C:/libname/library/services/src/orders/orders.service.ts' is not under 'rootDir'…
With Angular 10 being released, I am updating the version of Angular used to build a library + demo application to version 10.
Generally this goes smoothly, and the library remains compatible with previous versions of Angular, but this doesn't seem…
I am currently developing an Angular library (in Angular v 8.1.0) and wondering how is it possible to have it "split in different sub-libraries"?
For example, Angular (@angular) is split somehow in different "parts"…
I am creating an angular reusable module using ngPackagr. Everything works fine there but the images that I am internally referring to are not coming up in the final build where I am installing the component. I have tried using the actions in the…
I'm trying to create a library with multiple modules but having difficulties with module dependencies. I'm using Angular 6 with:
"@angular-devkit/build-ng-packagr": "^0.7.0-rc.3",
"@angular-devkit/build-angular": "^0.7.0-rc.3",
"ng-packagr":…
I created two application (first application is a library and another application consuming component from the library).
The intention is to do lazy loading of an imported library.
when I trigger ng serve it gives an error message, but when I…
When running command
ng-packagr -p ng-package.json
I get the following output
Building Angular library
- - - skipped 8 lines - - -
Side effects in initialization of unused variable Cm [0:2339,29]
Side effects in initialization of unused variable Jm…
With lots of help from this excellent article by Nikolas LeBlanc, I'm trying to create an Angular 4 component library:
https://medium.com/@nikolasleblanc/building-an-angular-4-component-library-with-the-angular-cli-and-ng-packagr-53b2ade0701e
The…
In an angular cli project, I managed to embed json like this
add to typings.d.ts
declare module "*.json" {
const value: any;
export default value;
}
import .json
import * as data from '../assets/data.json';
But if I want to compile…
When developing two local projects in angularjs(where one imports the other) I would simply run "npm link" in module B's folder and then run "npm link module-B" in my main module's folder and whenever I changed a file in module B I would see it…
I am trying to create scss theming based Angular(ng 11) library which I will use in separate projects through private npm registry.
Right now I am trying to add a global scss file into my library and bundle it with my library.
What I want:
let's say…
I am updated my npm package from angular 7.2 to angular 8.2, the problem I have now in my
ng-package.json is that Property externals is not allowed.?
Here is my ng-package.json
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
…
I am unsure what is really to blame for this issue. I think it's Typescript, but it could be ng-packagr or Angular. It only started when I updated to Angular 9.
Here is the message I get on my production build...
WARNING: Conflicting namespaces:…