Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng add ngx builders fail #108

Open
windmillcode0 opened this issue May 22, 2023 · 5 comments
Open

ng add ngx builders fail #108

windmillcode0 opened this issue May 22, 2023 · 5 comments

Comments

@windmillcode0
Copy link

ng add ngx builders fail

Expected Behavior

the builder to install sucessfully

Current Behavior

the video is recorded here
https://www.youtube.com/watch?v=IZLQ9mUuBQ0

Possible Solution

check the paths that the installation script is using

Steps to Reproduce

  1. create an new angular project with "npx ng new myapp --no-create-application"
  2. run npx ng add @ngx-builders/analyze
  3. observe resunlts

Environment

Angular CLI: 16.0.2
Node: 18.16.0
Package Manager: yarn 1.22.19
OS: win32 x64

Angular: 16.0.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1600.2
@angular-devkit/build-angular 16.0.2
@angular-devkit/core 16.0.2
@angular-devkit/schematics 16.0.2
@angular/cdk 16.0.1
@angular/material 16.0.1
@schematics/angular 16.0.2
ng-packagr 16.0.0
rxjs 7.5.7
typescript 5.0.4

Files

Detailed Description

Possible Implementation

Additional Issues

@santoshyadavdev
Copy link
Member

Ohh thanks for sharing I will fix it after I am back from conferences.

Meanwhile if you want to give it a try I can help

@windmillcode0
Copy link
Author

well the main issue is that there is no --stats.json when anaylizing angular libraries does this package do that for use show us dependency graph for angular applications?

@santoshyadavdev
Copy link
Member

This will work for applications, not for libs, but once you import the library in the app, you should be able to see the size of lib imported in app.

Just make sure you build app using --sourceMap flag

@windmillcode0
Copy link
Author

build the lib with the sourceMap flag

@santoshyadavdev
Copy link
Member

santoshyadavdev commented May 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants