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
nodestream not supported with 3.3.0 + #663
Comments
@mgechev as the author of the PR that went into 3.3.0 could you chime in here? |
Hey @Stuk, I'm lacking context; not sure what does this mean. Steps for reproduction would definitely help. |
just import in Angular Application and u will see that 3.2.0 has support for nodestream and 3.3.0 does not, if u cant do it by some reason let me know |
got the same error. JSzip.generateNodeStream() works well with JSZip 3.2.0, but failed with JSZip 3.3.0 & 3.4.0, throw an error: 'Error: nodestream is not supported by this platform', same as 491 |
seems like readable-stream redirect to stream, may be some useful informiation here776 |
hope who broke it will fix it, i will keep 3.2.0 till then |
We are having the same issue ('Error: nodestream is not supported by this platform') and we are stuck to version 3.2 as well. |
Yeah PR #614 breaks our build too; webpack+electron. I'm using patch-package to revert the change to package.json to fix it for now. |
Just to add that we are also experiencing this issue with Electron. |
Sure, the workaround of patching the package.json does work, but I'm hoping we can come up with something more sustainable for Electron + webpack users. Seems like I found a fix, which is to use a resolve alias to force the node version of jszip to be bundled when targeting In your webpack config, add something like:
@stuarta0 - this will work for you. The fundamental problem is that webpack with the On the surface this is perfectly logical - the nodeStream method isn't available in the browser, and the electron renderer is a modified chromium environment. However, node streams are available in an Electron renderer environment when Not sure what can be done about the situation, short of better environment detection in the module itself, rather than using the browser property in package.json. |
jszip>=3.3 breaks if you use readable-stream in the browser via webpack (see Stuk/jszip#663)
Any update on this issue? Is it still downgrading to 3.2.2 the only solution to use generateNodeStream in a browser environment? |
I have same experience in node 14... |
Any update on this? |
as i use jszip@3.2.0 nodestream is working and is also supported with my angular 8/9
but as i update it to 3.3.0 nodestream become to false
The text was updated successfully, but these errors were encountered: