ngx-builders / source-map-analyzer

typescript, builder
https://www.npmjs.com/package/@ngx-builders/analyze
MIT License
89 stars 12 forks source link

ng add ngx builders fail #108

Open windmillcode0 opened 1 year ago

windmillcode0 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

build the lib with the sourceMap flag

santoshyadavdev commented 1 year ago

No you can not use this with libs, you can use it inside an app, so build the app with sourceMap flag.

On Mon, May 22, 2023, 18:33 windmillcode0 @.***> wrote:

build the lib with the sourceMap flag

— Reply to this email directly, view it on GitHub https://github.com/ngx-builders/source-map-analyzer/issues/108#issuecomment-1557543737, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC27EB7FM45QN54CNCUJE2LXHOIMDANCNFSM6AAAAAAYKQACZU . You are receiving this because you commented.Message ID: @.***>