I am trying to rename a file during the assets copy of ng build
Here is what I have used in angular.json:
"outputPath": "dist",
"assets": [
...,
{
"glob": "favicon-v1.png",
"input":…
Type of Issue: Bug / Question
Description
I'm using ng-packagr lib to compile my library to js. I've compiled everything without any problems, but when I'll want to consume my library with ng build --prod (AOT enabled), I'm getting error:
ERROR in…
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 depends on lib_B and lib_C.
In the pre-built…
While building an angular 13 package with sub entries, I'm getting the warning below.
Building Angular Package
WARNING: Found configuration in .../package.json.
Configuring ng-packagr in "package.json" is deprecated. Use…
I created a core library for my project containing some components and services. I built the library with ng-packagr. In the consuming project which references the library I built my webapp containing components provided by the library. Nothing…
The Goal:
I am trying to include a path from my library so I can use an @import statement to include the scss files in my application like so:
@import "some-scss-in-my-lib"
The Problem:
Unfortunately everytime I try to serve my application I am…
Setup: Angular 9 workspace with libraries, a test app and storybook using CDK's _overlay.scss in a .scss file with @use.
.storybook/
node_modules/
projects/
- library/
- src/
- lib/
- component/
component.scss // `@use`s…
I am trying to import a locally developed Angular project/module into an angular application without publishing it into npm repository.
First, I followed this tutorial to build my module in UMD format (I skipped the publish…
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: moment is not a function"
The library works in dev…
I have an Angular 11 library using Bootstrap 4.5
ng-packagr uses SASS 1.34 which yields a lot of warning about the deprecation of the division operator, which is used a lot in Bootstrap…
I used postcss, postcss-css-modules and posthtml-css-modules to implement CSS Modules in a Angular Application. I also used @angular-builders/custom-webpack to achieved this.
Now, I want to do the same with my Custom Angular Library. However, I…
I have a very specific question about angular libraries secondary entry points setup. I really don't understand how i can setup it to get it work when they depend on each other including the main entry point. I've read the docs for the ng-packagr…
I have an Angular CLI library where each component should only be imported through their individual entry-points (like Angular Material) :
import {Foo} from '@myLib/foo
import {Bar} from '@myLib/bar
So I don't want a main entry point in ng-packagr…
I'm having trouble importing JSON file to my environment file in Angular 7 library.
My environment.ts file looks like this:
import firebase from './firebase.json';
export const environment = {
production: false,
firebase,
};
And…
Is there a way within an Angular CLI project to have a library provide a polyfill? Within angular.json, the main app is by default configured with "polyfills": "src/polyfills.ts". This option is not available for a library project.
My specific use…