You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ product git:(bundle-stats-comparison) ✗ bundbundle-stats --html ./bundleStats/baseline.json ./bundleStats/bundle-stats.json
✔ Read Webpack stats files
↓ Read baseline data [skipped]
→ Multiple stat files already set.
↓ Write baseline data [skipped]
→ Not a baseline job (see --baseline).
✖ Process data
→ Cannot read property 'split' of undefined
Generate reports
Save reports
TypeError: Cannot read property 'split' of undefined
at getAssetName (/Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/assets/get-asset-name.js:17:35)
at /Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/transforms/assets-webpack-transform.js:49:45
at Array.reduce (<anonymous>)
at assetsWebpackTransform (/Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/transforms/assets-webpack-transform.js:44:32)
at createStats (/Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/stats/create.js:97:82)
at createJob (/Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/jobs/create-job.js:53:41)
at /Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/jobs/create-jobs.js:28:126
at Array.reduce (<anonymous>)
at createJobs (/Users/n0s00jx/codebase/work/product/node_modules/@bundle-stats/utils/lib/jobs/create-jobs.js:28:53)
at Task.task (/Users/n0s00jx/codebase/work/product/node_modules/bundle-stats/bin/run.js:84:27) {
context: [Object: null prototype] { artifacts: [ [Object], [Object] ] }
}
The text was updated successfully, but these errors were encountered:
@nilanjansiromani I was able to replicate the error when passing invalid webpack stats. The latest version (2.2.0) is going to validate the entire structure and give you an error message.
Feel free to re-open this issue if you still have problems.
We get an error when trying to compare two jsons
The text was updated successfully, but these errors were encountered: