Cannot read properties of undefined (reading 'requestStart') on navigation with bfcache
I'm getting the error from the title on this line when testing bfcache in chrome browser.
Reproduction
- Open Chrome DevTools -> Application -> Back/Forward Cache
- Click
Test Back/Forward cache

Initial problem from web-vitals package - https://github.com/GoogleChrome/web-vitals/issues/313
Following the discussion in web-vitals repo, we can still report 0 values and add just fix for BFCache case - https://github.com/Zizzamia/perfume.js/pull/221
i believe we are hitting this error as well fwiw
undefined is not an object (evaluating 'e.entries[0].requestStart')
@scamden what version are you using?
8.4.0, should i try an upgrade?
I'm upgrading to 9.4 and will let you know if we see again
Also, curios, what version of web-vitals are you resolving, maybe we need to upgrade from Perfume side as well.
Also, curios, what version of
web-vitalsare you resolving, maybe we need to upgrade from Perfume side as well.
@Zizzamia we have 3.5.2 for web vitals
prior to the upgrade 3.4.0 fwiw
@scamden do you still see the issue after upgrade?
Haven't seen it since to my knowledge (although we had only seen it once so sample size is pretty low for this data :P )
Thanks for the tip on upgrading! Perfume is a great package :)
Ok, so I think it's safe to close this for now.
I will reopen this if this issue happens again.