Skip to content

Symbol(nodeStream) error message with msw #1325

@antham

Description

@antham

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions