Open kettanaito opened 6 months ago
@kettanaito I have seen this issue and was wondering if it's just because an unhandled request is happening, or if the msw version is also out of date?
We have a monorepo of SPAs with a root package.json, and then each directory holds an SPA with its own public dir. For example:
.
├── appA
│ ├── public
│ └── mockServiceWorker.js
├── appB
│ ├── public
│ └── mockServiceWorker.js
├── package.json
The SPAs are all sharing the same mockServiceWorker.js file with a PACKAGE_VERSION
of 2.2.13, which matches the version in our root package.json. But I was wondering how the mockServiceWorker file checks its version and if it needs to be told where to find the package.json?
Prerequisites
Environment check
msw
versionBrowsers
No response
Reproduction repository
—
Reproduction steps
Current behavior
Expected behavior
Should print the actual MSW version, not
(undefined)
.