Questions tagged [ng-packagr]

a tool to transpile your libraries to Angular Package Format

Resources:

  1. GitHub: https://github.com/dherges/ng-packagr
  2. NPM: https://www.npmjs.com/package/ng-packagr
  3. Example: https://github.com/dherges/ng-packaged
247 questions
0
votes
0 answers

ng-packagr: Can't resolve /lib/button

I successfully packed my npm module with ng-packagr And its working fine. The problem is, i don't seem to be able to import from any folder beneath the root folder. That is import { ButtonModule } from "my-components/button/"; Throws the…
Nuru Salihu
  • 4,756
  • 17
  • 65
  • 116
0
votes
1 answer

ng-packagr npm install error : postinstall `opencollective postinstall`

I am trying to build an angular 6 library and it needs ng-packagr as a dependency. I am getting following error while trying to npm install ng-packagr (latest version) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ng-packagr@4.7.0 postinstall:…
Malik
  • 3,520
  • 7
  • 29
  • 42
0
votes
2 answers

ng packagr auto-generated path issues

I'm working on creating stand-alone ng-libraries to be used in a parent app. Each of these libraries have multiple model files that are being used. But ng-packagr seems to be messing up the model file paths. For…
Abhidev
  • 7,063
  • 6
  • 21
  • 26
0
votes
2 answers

NPM package is not imported in angular production app

Goal I'm trying to deliver a typescript module augmentation of rxjs as an npm package to be used in Angular projects. Problem Using the package in an Angular app works fine in local dev mode but once the app is built for production the package is…
Badisi
  • 469
  • 1
  • 3
  • 12
0
votes
0 answers

Module not found: Error: can't resolve the component. Facing issue when trying to import component from a package made using ng-packagr

Description I have exported the package from a different app and trying to use that package in a different application as a dependency. I am getting the following error when trying to import components from that package. ERROR in…
Aditi
  • 1
  • 1
0
votes
1 answer

Change aot metdata.json file generated directory when building library with ng-packagr

I have created an Angular library. I'm using ng-packagr to build the library. When I am building the library with ng-packagr it creates the .metada.json for AOT in the directory where the public_api.ts file exists. Can we change the .metdata.json…
nuwan.chamara
  • 467
  • 5
  • 14
0
votes
1 answer

Angular ng-packagr custom package auto-generated paths issues

There is a custom library in our project. And the issue is when I run the command ng build *package_name* everything (classes and etc.) builds fine except paths in functions. For example, it generates line export declare const selectState: import…
Denis
  • 17
  • 1
  • 9
0
votes
1 answer

How to package the angular 4/6 application

I want to package the complete Angular 4/6 application along with routing and directives. Though I have tried ng-packagr it's working for single component not the complete app. Here is the link of…
Sharz
  • 81
  • 1
  • 4
0
votes
2 answers

Linking Angular 6 & Angular 4 App

I have an angular app which is running in angular 6, I also have an another app which is running in angular 4. Now I am having an situation to reuse that angular 4 app inside angular 6. When user click on an menu in angular 6 app that angular 4 app…
Gobi
  • 2,041
  • 1
  • 12
  • 10
0
votes
1 answer

Disable TypeScript mismatch in ng-packagr

In an Angular CLI project, when using an unsupported version of TypeScript you may get the following warning: @angular/compiler-cli@6.1.0 requires typescript@'>=X.X.X
Sam Herrmann
  • 6,293
  • 4
  • 31
  • 50
0
votes
0 answers

Angular 5 Service not provided in bundled version

We have an Angular 5 sandbox application in which are handled components I'd like to reuse in other applications, with a demo component that simulates integration of those components in a real app. We use ng-packagr to build components in our lib…
Aphax
  • 169
  • 3
  • 14
0
votes
1 answer

package.json not able to locate file

I have added a script in my script section of package.json which is present at root directory "packagr": "ng-packagr -p src/ng-package.json" But while running this script using npm run pacakgr gives error saying "no such file or directory" and…
Ashutosh Singh
  • 609
  • 6
  • 21
0
votes
1 answer

Auth0 setup for an Angular sub-application

we have a main angular application with auth0 setup. Inside main application lives another sub-application which is imported as a npm module. Sub-application has also a standalone deployable version for development and testing purposes. Since…
Ayberk
  • 50
  • 11
0
votes
1 answer

Problems with font on scss

I'm using ng-packager to create my own package of alert with angular, that uses the ionicons package. The package link is https://www.npmjs.com/package/jtp-alert and the project is open, and is in https://github.com/jtpdev/ng-alert. But when I…
Jimmy Porto
  • 109
  • 1
  • 15
0
votes
1 answer

npm build failed: ERROR in Unexpected value 'undefined' declared by the module

I'm trying to build my angular5 proj but it fails. This is an excerpt of deps tree: simple-kaishi <- kaishi <- ngx-admin-lte ngx-admin-lte: (develop branch) is the angular version of popular adminlte theme kaishi : (master branch) is a my…
Fabio Formosa
  • 904
  • 8
  • 27
1 2 3
16
17