-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(react-native): fix for "<Intermediate Value>.stream is not a function" errors in React Native #1156
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Results for a04af4c:
Longest running tests
|
I tried running
In both Node 12 and 14 |
@wmhilton do you know when we might be able to get this in? I'm able to work-around it, but am hoping we can remove the hack sometime in the app soon |
Ping @wmhilton |
billiegoose
pushed a commit
that referenced
this pull request
Dec 17, 2020
…tion" errors in React Native (#1156)
jcubic
pushed a commit
that referenced
this pull request
Jun 30, 2021
* chore: fix broken link in README.md (#1154) * fix(react-native): fix for "<Intermediate Value>.stream is not a function" errors in React Native (#1156) * Added an error handler for cleanup after failed clone * chore: add comments * fix: add recursive delete helper & tests Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com> Co-authored-by: Corbin Crutchley <crutchcorn@gmail.com>
jcubic
pushed a commit
that referenced
this pull request
Jul 1, 2021
* chore: fix broken link in README.md (#1154) * fix(react-native): fix for "<Intermediate Value>.stream is not a function" errors in React Native (#1156) * chore: remove fallthrough switch statement * docs: add @mmkal as a contributor * docs: add @mmkal as a contributor Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com> Co-authored-by: Corbin Crutchley <crutchcorn@gmail.com>
modesty
pushed a commit
to modesty/isomorphic-git
that referenced
this pull request
Apr 9, 2024
…tion" errors in React Native (isomorphic-git#1156)
modesty
pushed a commit
to modesty/isomorphic-git
that referenced
this pull request
Apr 9, 2024
* chore: fix broken link in README.md (isomorphic-git#1154) * fix(react-native): fix for "<Intermediate Value>.stream is not a function" errors in React Native (isomorphic-git#1156) * Added an error handler for cleanup after failed clone * chore: add comments * fix: add recursive delete helper & tests Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com> Co-authored-by: Corbin Crutchley <crutchcorn@gmail.com>
modesty
pushed a commit
to modesty/isomorphic-git
that referenced
this pull request
Apr 9, 2024
* chore: fix broken link in README.md (isomorphic-git#1154) * fix(react-native): fix for "<Intermediate Value>.stream is not a function" errors in React Native (isomorphic-git#1156) * chore: remove fallthrough switch statement * docs: add @mmkal as a contributor * docs: add @mmkal as a contributor Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com> Co-authored-by: Corbin Crutchley <crutchcorn@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm fixing a bug or typo
npm run add-contributor
and follow the prompts to add yourself to the READMEExplanation
While working on my React Native app, I kept finding myself running into
<Intermediate Value>.stream is not a function
errors. After some investigating, I realized that it was thanks to React Native'sBlob
supporting constructors but not thestream
method. However, it does supportCompressionStream
. As such, it was defaulting to usebrowserDeflate
, which was causing errors to be thrown.I thought I could work around this by polyfilling
Blob.stream
:But once this was done, I got an error that "anything passed to
pipeThrough
must be aWritableStream
", so I figured a single LOC change was better than not.By adding a simple check to see if
stream
is a function, we can tell React Native to instead usepako.deflate
, which works exactly as expected.