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…
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:…
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…
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…
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…
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…
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…
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…
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…
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
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…
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…
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…
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…
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…