Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cannot read properties of undefined (reading 'url')' when multiple browser tabs are open #2146

Open
4 tasks done
vik-buchinski opened this issue May 10, 2024 · 2 comments
Open
4 tasks done
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:browser Related to MSW running in a browser

Comments

@vik-buchinski
Copy link

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 18 or higher

Browsers

Chromium (Chrome, Brave, etc.)

Reproduction repository

https://github.com/hal-shin/msw-bug

Reproduction steps

  1. install nodejs v20.12.2
  2. npm i
  3. npm start
  4. open 2 tabs 'http://localhost:3000/'
  5. after opening the second tab, you'll see the following error:
image

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.

@vik-buchinski vik-buchinski added bug Something isn't working needs:triage Issues that have not been investigated yet. scope:browser Related to MSW running in a browser labels May 10, 2024
@akumapps
Copy link

Same behavior here with version 2.3.0

@kaique64
Copy link

I got the same behavior here with version 2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage Issues that have not been investigated yet. scope:browser Related to MSW running in a browser
Projects
None yet
Development

No branches or pull requests

3 participants