AxisCommunications / media-stream-library-js

JavaScript library to handle media streams on the command line (Node.js) and in the browser.
MIT License
303 stars 102 forks source link

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

Open yudataguy opened 3 years ago

yudataguy commented 3 years ago

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):

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

steabert commented 3 years ago

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).

merceyz commented 3 years ago

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

alainib commented 2 years ago

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 ?