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

Most upvoted comments

@SukkaW I’ve added you to https://github.com/hexmate-live/hexmate-remix-admin/invitations , please feel free to test copy .example.env to .env.development pnpm install && pnpm tun nolyfill && pnpm run dev

I am able to reproduce the error. The issue is caused by @nolyfill/array-flatten. Turns out that although the latest version array-flatten uses named export, the previous version uses default export, so @nolyfill/array-flatten only adds named export, hence the issue.

Oops. Lemme looking into this real quick!