modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.16k stars 271 forks source link

msw dependency throws error #2694

Closed zglimbeld closed 2 months ago

zglimbeld commented 3 months ago

When running unit tests using @web/mocks latest version 1.1.1, which has msw as a dependency at version 2.0.11, the package sometime throws an error of "Cannot read properties of undefined (reading 'url')". This has been fixed in version 2.2.6, as per this comment.

I was wondering if any update to this dependency (as well as a script update, as per this comment) that would fix this bug is planned.

thepassle commented 2 months ago

this should be fixed, make sure you run npm update msw to get the latest version of msw. Feel free to reopen if this is still an issue