Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scottlet opened this issue Aug 4, 2022 · 0 comments
Labels

Comments

@scottlet
Copy link

scottlet commented Aug 4, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants