Im not sure why the problem occured, but updating the playwright package to the latest version fixed it