I'm developing an npm package with Angular. While building the lib, I get the following error:
Unsupported private class MyLibComponent. This class is visible to consumers via MyLibModule -> MyLibComponent, but is not exported from the top-level…
I am converting an angular app to angular lib. I generated angular lib project and slowly moving the modules. I now get the following error while building the library.
ng build lib
Error
Cannot read property 'module' of undefined
TypeError: Cannot…
I am creating a component library with the Angular CLI (v7.x) and am having trouble figuring out how I get 3rd party font assets needed for css rules to be included in my dist folder generated by ng-packagr.
Due to ng-packagr not supporting scss…
I'd like to use the Pure.css module in an Angular library created with the CLI generate library command.
I have a workspace app in which I have ran the generate library command to create the library. The library was successfully created and I was…
When defining an APP_INITIALIZER in a library module, the build fails with the Lambda not supported error. The build error is thrown when the function is exported as per docs:
import { NgModule, APP_INITIALIZER } from '@angular/core';
import {…
I am trying to create an angular package using ng-packagr.
I have added the following script into my package json in order to build the package
"scripts": {
"build:lib": "ng-packagr -p lib/package.json"},
However, I am getting the following…
After updating my project to the latest version of Angular (6.0.4) i wanted to finally separate my code into different libraries.
The setup is as followed:
CMS - app
Client - app
Core - Library with shared members for both apps
I created 3 empty…
I have an Angular 5 project that uses ngrx/store. The project consists of an application and a shared library that the application uses. Up until today, we had been compiling the TypeScript for both projects together - the library was being…
I have an angular library with store implementation and this library is packaged as a NPM and used in different angular application.
I'm trying to use a ngrx store selector which was exported in the library in my different angular project and the…
I have a Custom Angular Library and I would like to customize the build of that Library using postcss.
Like the Angular Libraries are built using ng-packagr, I need to extend the rollup.config.js of ng-packagr to customize the build of my…
I try to bundle some assets into my published angular library. Within my angular workspace, I located the assets in the src-folder with the following ng-package.json
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest":…
I have several apps in my Angular monorepo project. Also there are about 5 libraries I've written to use across the apps.
What I want to know is how to better build/architect these libraries.
The ins are follows:
Libraries are for internal usage…
Using tools like rollup or ng-packagr (for angular) you can create the UMD bundle of your code easily. By default, dependencies will be treated as external dependencies and not bundled in the generated module. For example, ng-packagr does this by…
A very big library I am creating, so naturally I am thinking to modularise the public_api.ts for different huge modules.
But it seems I cannot achieve that via something like this in the root public_api.ts:
export * from…
I'm currently working on an Angular 6 project containing multiple libraries built and released using ng-packagr. One of those libraries is a component library. As such, it contains multiple component each of them with their own scss. As part of the…