Incorrect peer dependency
The peer dependency web-streams-polyfill should be <4. In web-streams-polyfill@>=4 the import of web-streams-polyfill/ponyfill/es6 fails as the JS files have been renamed.
See the changelog for more info.
Alternatively you could update it to work with v4 and set the peer dependency to >=4.
On investigation, due to mocking in the tests, you would not see this issue...
jest.mock('web-streams-polyfill/ponyfill/es6', () => ({
ReadableStream: () => 'ReadableStream',
}), { virtual: true });
I've submitted a PR to help get this moving, #7.
I've submitted a PR to help get this moving, #7.
I would love if they could get this updated??
Did you happen to find another solution?
@makeiteasierapps
Installing web-stream-polyfill at v3 ensures you don't end up with v4. It would be great if the author merged the PR to prevent mistakenly using v4.
Please fix, thanks!