[🐞] service-worker.js error: Cannot read properties of undefined (reading 'ok')
#4563
Labels
Cannot read properties of undefined (reading 'ok')
#4563
Which component is affected?
Qwik Runtime
Describe the bug
After updating to the latest dev commit, an error started to throw on production builds. Ive been unable to reproduce it myself, however, on my colleagues latest browsers with disabled caches it happens consistently. Ive not been able to figure out why.
This is the full error:
Here is the file service-worker.js thats throwing the error
This is where its throwing the error exactly for quick reference:
Which i believe is here https://github.com/BuilderIO/qwik/blob/main/packages/qwik-city/runtime/src/service-worker/cached-fetch.ts#L65
Reproduction
N/A
Steps to reproduce
I honestly have no idea how to reproduce this, and Im not sure why this is happening on so many browsers except my own. I hope the error makes sense though
System Info
Additional Information
This issue began after updating from commit 37321d2 to 648f55b
I suspect the issue has something to do with this PR #4548, just because the lines changed right above it
The text was updated successfully, but these errors were encountered: