-
-
Notifications
You must be signed in to change notification settings - Fork 268
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Upgrading, from the 13.7.0 to the 13.7.1 I get this error message when performing calls with fetch with a mock defined using msw:
TypeError: Cannot read properties of null (reading 'Symbol(nodeStream)')
The error appears on all subsequent versions.
To Reproduce
I define a mock like the following using the last version of msw => https://github.com/mswjs/msw/releases/tag/v2.2.7
server.use(
http.put('/xxxx', async () => {
return new HttpResponse('', { status: 204 });
})
);When I define any string as the first parameter like the following, the error disappears:
server.use(
http.put('/xxxx', async () => {
return new HttpResponse('No Content', { status: 204 });
})
);Expected behavior
Not having any error like with the 13.7.0
arthurvi
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working