Open vik-buchinski opened 6 months ago
Same behavior here with version 2.3.0
I got the same behavior here with version 2.3.0
I got the same result
@kettanaito Hi! I find this PR #2031. I think it is a reason of this bug. Can you fix it?
Also, I still get error with version 2.3.1
:(
Any update regarding this issue?
This is also happening on the latest version 2.4.11
, when multiple tabs of the same origin are open, this error shows up once for each open tab.
The service worker also crashes when you reload the page multiple times:
We are having this problem in our project. It breaks our screenshot/acceptance tests :(
I can confirm that this issue is still happening in msw@2.5.1, using the same reproduction created by @vik-buchinski.
It looks like request
is getting undefined and line 58 throws:
request
comes from a map and in fact can be undefined, but the code uses a non-null assertion (!
).
I have no deep knowledge of this function, but maybe msw needs to check if request
exists before using it?
Present in 2.6.2 as well
2.6.4 as well
Hi msw v2.6.5
also has this issue but in a different place. Please have a look
Prerequisites
Environment check
msw
versionBrowsers
Chromium (Chrome, Brave, etc.)
Reproduction repository
https://github.com/hal-shin/msw-bug
Reproduction steps
Current behavior
when the second tab opened, I see 'Cannot read properties of undefined (reading 'url')' error.
Affected versions: >2.1.7 Versions that work correctly: <= 2.1.7
Expected behavior
application should continue working when it is opened in 2 tabs.