source-map-analyzer icon indicating copy to clipboard operation
source-map-analyzer copied to clipboard

ng add ngx builders fail

Open windmillcode0 opened this issue 2 years ago • 5 comments

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

windmillcode0 avatar May 22 '23 14:05 windmillcode0

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

santoshyadavdev avatar May 22 '23 14:05 santoshyadavdev

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?

windmillcode0 avatar May 22 '23 15:05 windmillcode0

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

santoshyadavdev avatar May 22 '23 15:05 santoshyadavdev

build the lib with the sourceMap flag

windmillcode0 avatar May 22 '23 16:05 windmillcode0

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: @.***>

santoshyadavdev avatar May 22 '23 16:05 santoshyadavdev