Closed antham closed 5 months ago
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:
13.7.0
13.7.1
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
Thank you for reporting @antham! :slightly_smiling_face:
There is a fix in now: https://github.com/capricorn86/happy-dom/releases/tag/v13.10.1
Thank you for the fix 👍
Describe the bug Upgrading, from the
13.7.0
to the13.7.1
I get this error message when performing calls with fetch with a mock defined using msw: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
When I define any string as the first parameter like the following, the error disappears:
Expected behavior Not having any error like with the
13.7.0