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
{{ message }}
Repository navigation
TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor.prototype" property must be of type object. Received undefined #488
When using rollup without vite...the following error occurs on pnpm install:
TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor.prototype" property must be of type object. Received undefined
│ at new NodeError (node:internal/errors:387:5)
│ at inherits (node:util:243:11)
│ at Object.<anonymous> (/home/brian/project/node_modules/.pnpm/bl@5.0.0/node_modules/bl/bl.js:36:1)
│ at Module._compile (node:internal/modules/cjs/loader:1126:14)
│ at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
│ at Module.load (node:internal/modules/cjs/loader:1004:32)
│ at Function.Module._load (node:internal/modules/cjs/loader:839:12)
│ at Module.require (node:internal/modules/cjs/loader:1028:19)
│ at require (node:internal/modules/cjs/helpers:102:18)
│ at Object.<anonymous> (/home/brian/project/node_modules/.pnpm/tar-stream@2.2.0/node_modules/tar-stream/extract.
│ code: 'ERR_INVALID_ARG_TYPE'
Thanks for reporting. You can just use this module. Its version 4 has the circular dependency fixed.
If you still have the problem after upgrading, can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
For any other bugs in vite-compatible-readable-stream, please contact their maintainers.
Thanks for reporting!
I'm trying to use readable-stream with rollup and still run into the circular dependency issue, as version 4.2.0 in fact still has a circular dependency (here <-> here, for example) which then causes problems when using readable-stream in the bundle.
The rollup output complains about the circular dependencies:
Activity
mcollina commentedon Sep 11, 2022
Thanks for reporting. You can just use this module. Its version 4 has the circular dependency fixed.
If you still have the problem after upgrading, can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
For any other bugs in
vite-compatible-readable-stream, please contact their maintainers.Thanks for reporting!
AtiX commentedon Oct 19, 2022
I'm trying to use
readable-streamwith rollup and still run into the circular dependency issue, as version 4.2.0 in fact still has a circular dependency (here <-> here, for example) which then causes problems when using readable-stream in the bundle.The rollup output complains about the circular dependencies:
which then, when attempting to use the (bundled) code, gives me the error
where I assume that rollup resolved
DuplexStreamto undefined due to rollups handling of the circular dependency.luiscastro193 commentedon Sep 14, 2023
Atix is right. Rollup bundles fail due to circular dependencies.