Skip to content

"Cannot read properties of undefined (reading 'get')" when using generators/async generators as resolvers #2109

@juliusmarminge

Description

@juliusmarminge

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 18 or higher

Node.js version

20.11

Reproduction repository

https://github.com/juliusmarminge/msw-async-generator

Reproduction steps

bun i && bun run test

Current behavior

CleanShot 2024-03-25 at 13 01 38@2x

Expected behavior

According to the docs here: https://mswjs.io/docs/recipes/polling async generator should be supported

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingscope:nodeRelated to MSW running in Node

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions