facebook / memlab

A framework for finding JavaScript memory leaks and analyzing heap snapshots
https://facebook.github.io/memlab/
MIT License
4.37k stars 119 forks source link

TypeError: core_1.utils.tryToMutePuppeteerWarning is not a function #97

Closed jeswr closed 11 months ago

jeswr commented 11 months ago

In trying to upgrade from @memlab/api 1.0.23 -> 1.0.24 the following error message occurs in the CI of the eye-js project I maintain.

TypeError: core_1.utils.tryToMutePuppeteerWarning is not a function
    at Object.<anonymous> (/home/runner/work/eye-js/eye-js/node_modules/@memlab/api/dist/lib/APIUtils.js:32:22)
    at Generator.next (<anonymous>)
    at /home/runner/work/eye-js/eye-js/node_modules/@memlab/api/dist/lib/APIUtils.js:17:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/eye-js/eye-js/node_modules/@memlab/api/dist/lib/APIUtils.js:13:12)
    at Object.getBrowser (/home/runner/work/eye-js/eye-js/node_modules/@memlab/api/dist/lib/APIUtils.js:29:12)
    at /home/runner/work/eye-js/eye-js/node_modules/@memlab/api/dist/API.js:236:54
    at Generator.next (<anonymous>)
    at /home/runner/work/eye-js/eye-js/node_modules/@memlab/api/dist/API.js:17:71
    at new Promise (<anonymous>)

This occurs when this script is run as triggered by this command.

JacksonGL commented 11 months ago

@jeswr @memlab/api 1.0.24 is using a newer version of @memlab/core which includes a new API (tryToMutePuppeteerWarning). Please consider upgrading all @memlab/* packages to the latest version.

jeswr commented 11 months ago

Indeed just npm upgrading everything seems to work. Thanks @JacksonGL !