nolyfill: "safer-buffer": "npm:@nolyfill/safer-buffer@^1" pnpm overrides crashes on repeated pnpm install while installing cypress
removing "safer-buffer": "npm:@nolyfill/safer-buffer@^1" from overrides fixes an issue
an error:
node_modules/.pnpm/sshpk@1.18.0/node_modules/sshpk/lib/algs.js:57
│ p: Buffer.from(('00' +
│ ^
│ TypeError: Cannot read properties of undefined (reading 'from')
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- fix(#108): proper replacement for `safe-buffer` & `safer-buffer` — committed to SukkaW/nolyfill by SukkaW 2 years ago
- fix(#108): proper replacement for `safe-buffer` & `safer-buffer` (#109) — committed to SukkaW/nolyfill by SukkaW 2 years ago
- fix(#108): compat with older version of `array-flatten` — committed to SukkaW/nolyfill by SukkaW 2 years ago
- fix(#108): compat with older version of `array-flatten` (#110) — committed to SukkaW/nolyfill by SukkaW 2 years ago
I am able to reproduce the error. The issue is caused by
@nolyfill/array-flatten. Turns out that although the latest versionarray-flattenuses named export, the previous version uses default export, so@nolyfill/array-flattenonly adds named export, hence the issue.Oops. Lemme looking into this real quick!