Skip to content

Interference between Pretender and React Server Components #360

@thearnica

Description

@thearnica

Just want to report an issue I found during Next13 adoption - it short navigation between pages is not working.

The problem appears as TypeError: Cannot read properties of undefined (reading 'getReader') at react-server-dom-webpack-client.development.js

Root cause is at startReadingFromStream(response, r.body); with r being Response defined by pretender and .body being not defined.

In short - the underlaying polyfill does not support .body and likely will never support it - JakeChampion/fetch#1109

This basically means that the problem cannot be resolved in the downstream and might need correction at the pretender level. Why do you need FakeFetch in any case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions