media-stream-library-js icon indicating copy to clipboard operation
media-stream-library-js copied to clipboard

TypeError: BigInt.prototype.toString requires that 'this' be a BigInt

Open yudataguy opened this issue 4 years ago • 3 comments

Describe the bug run yarn lint, yarn examples return error

TypeError: BigInt.prototype.toString requires that 'this' be a BigInt
    at Number.toString (<anonymous>)
    at gotStat (node:fs:1926:19)
    at /Users/*****/Downloads/code/playground/media-stream-library-js/.pnp.js:15471:13

To Reproduce yarn install - ok yarn test - ok yarn lint - error yarn examples - error

Environment (please complete the following information):

  • OS: macOS Catalina
  • Node: 15.8.0
  • Version:latest

Screen Shot 2021-02-11 at 2 22 26 PM

yudataguy avatar Feb 11 '21 22:02 yudataguy

I don't have access to a Mac to reproduce this. Can you check if it works with NodeJS 14 ? (I think we had some problems before with NodeJS 15 and Yarn2).

steabert avatar Mar 31 '21 15:03 steabert

Fixed in https://github.com/yarnpkg/berry/pull/2262, can use yarn set version from sources to start using it now before the next release

merceyz avatar Apr 03 '21 11:04 merceyz

Hello. I still get this error with cypress.ios

i have yarn 2.4.2 (same error with 2.4.2) node v16.13.2

i cannot upgrade to yarn 3 and to node v17 because it break the project i'm working on.

my project work good but cypress not :

TypeError: BigInt.prototype.toString requires that 'this' be a BigInt
    at Number.toString ()
    at gotStat (node:fs:2650:19)
    at callback (/Users/ai/Library/Caches/Cypress/10.8.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/graceful-fs/polyfills.js:299:20)
    at callback (/Users/ai/Library/Caches/Cypress/10.8.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/graceful-fs/polyfills.js:299:20)
    at /Users/ai/dev/application/.pnp.js:30271:13

how to fix this please ?

alainib avatar Sep 23 '22 15:09 alainib