common-shakeify icon indicating copy to clipboard operation
common-shakeify copied to clipboard

Just upgraded to v1 - TypeError: Cannot read properties of undefined (reading 'dedupe')

Open scottlet opened this issue 1 year ago • 0 comments

Just upgraded the dependencies in an old project and tried re-running the browserify portion.

common-shakeify v1.1.1 Node 16.16.0 OSX Arm

b = browserify(options).plugin(commonShakeify, {});

b.transform('babelify', {
    presets: ['@babel/preset-env'],
    sourceMaps: true
  });

So just using the default options, but when running it I get:

TypeError: Cannot read properties of undefined (reading 'dedupe')
    at /node_modules/common-shakeify/index.js:150:15
    at Map.forEach (<anonymous>)
    at DestroyableTransform.onend [as _flush] (/node_modules/common-shakeify/index.js:143:22)
    at DestroyableTransform.prefinish (/node_modules/readable-stream/lib/_stream_transform.js:138:10)
    at DestroyableTransform.emit (node:events:527:28)
    at DestroyableTransform.emit (node:domain:537:15)
    at prefinish (/node_modules/readable-stream/lib/_stream_writable.js:619:14)
    at finishMaybe (/node_modules/readable-stream/lib/_stream_writable.js:627:5)
    at endWritable (/node_modules/readable-stream/lib/_stream_writable.js:638:3)
    at DestroyableTransform.Writable.end (/node_modules/readable-stream/lib/_stream_writable.js:594:41)
    at DestroyableTransform.onend (/node_modules/readable-stream/lib/_stream_readable.js:577:10)
    at Object.onceWrapper (node:events:641:28)
    at DestroyableTransform.emit (node:events:539:35)
    at DestroyableTransform.emit (node:domain:537:15)
    at endReadableNT (/node_modules/readable-stream/lib/_stream_readable.js:1010:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Any ideas what this might be? Not changed anything other than the version numbers of packages.

scottlet avatar Aug 04 '22 05:08 scottlet