I am trying to get a web-vitals metrics result from the reportWebVitals function from the web-vitals npm package but unable to achieve the result using playwright, it throws an error saying "page. evaluate: ReferenceError: _reportWebVitals is not defined"
I'm afraid I don't use Playwright and can't really advise but see #180 as one implementation that someone has used (based on an older version of web-vitals) in case that helps.
I am trying to get a web-vitals metrics result from the reportWebVitals function from the web-vitals npm package but unable to achieve the result using playwright, it throws an error saying "page. evaluate: ReferenceError: _reportWebVitals is not defined"