webpack-bundle-diff icon indicating copy to clipboard operation
webpack-bundle-diff copied to clipboard

"env: node\r: No such file or directory"

Open OliverJAsh opened this issue 4 years ago • 0 comments

Hey, thanks for this great tool! I'm struggling to get it running as per the docs.

Steps to reproduce:

  1. yarn add webpack-bundle-diff
  2. wbd diff before.json after.json -o diff.json
$ wbd diff before.json after.json -o diff.json
env: node\r: No such file or directory

I think this is because ./node_modules/.bin/wbd contains a broken relative path.

I am able to workaround this bug by using the following command instead:

node ./node_modules/webpack-bundle-diff/bin/webpack-bundle-diff diff before.json after.json -o diff.json

OliverJAsh avatar Nov 20 '20 13:11 OliverJAsh