I wrapped the lifetime of the acquired browser from the browserPool in a try/finally so if any error occurs the browser is returned to the browserPool.
Following the README I couldn't get the code to compile using npm to pull down the packages/build. I noticed the git logs mentioned pnpm so tried that and everything compiled/ran and appears to work as before.
I wrapped the lifetime of the acquired
browser
from thebrowserPool
in atry/finally
so if any error occurs thebrowser
is returned to thebrowserPool
.Following the README I couldn't get the code to compile using
npm
to pull down the packages/build. I noticed the git logs mentionedpnpm
so tried that and everything compiled/ran and appears to work as before.