-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
v1.5.0 requires additional Webpack config #44
Comments
Hi @miguelcobain I created a new issue for you. I actually don't know much about your use-case. Are you trying to use |
Yes, I'm using Before my webpack fixes, the error I got was basically complaining about the Here is the error:
|
Ok, here's a wild guess. I've been looking at the diff between 1.4.0 and 1.5.0 and I saw this change: Perhaps webpack wasn't even bundling the But now, the stream file is imported, which forces webpack to bundle it, and then this problem emerges. |
Yeah, that's my guess. So you're just using the normal |
Yes! Using Would a quick note about this on the README be useful? |
Actually I would try using the Can you do me a favor by hacking your |
And yes, I would do a quick note. Thanks for the reminder :P |
Indeed, adding But doesn't this mean that browser users will not be able to get the stream feature at all? |
They still can by importing from |
I can agree with that. It's definitely more in line with past versions and less of a breaking change! |
I added the fix in e34abfe (too lazy to send a PR). And you can read the README to see if that seems good :D |
Unfortunately we are already shipping 2.0.0, so not sure if this should be backported to v1... @ngryman Do you think we should do a patch release in v1, or should we encourage people to pick up on v2? |
Perhaps adding the note that you mentioned above:
Bonus points if we could add the necessary webpack config I posted in a spoiler like this: https://gist.github.com/jbsulli/03df3cdce94ee97937ebda0ffef28287 But, to be honest, this is already excellent. :) |
I did that in a later commit, so just read the docs on the front page instead of looking at the diff.
I suspect users who need to use the stream version already know about the |
We'll keep the issue open until @ngryman and I agreed on a release method. Thanks for reporting @miguelcobain! |
It's perfect! |
I just caught up, thanks for taking care of this @Josh-Cena 🙏 I just published
I think it's fine if we don't backport it. Let's see if we get other reports about this. There's an easy workaround anyway, as @miguelcobain suggested:
Thanks for the help guys! |
Just jumping in to say that, with my current setup,
v1.4.0
worked fine without any changes, but updating tov1.5.0
required me to add the following to my webpack config:and had to install
stream-browserify
.The problematic line was
const Transform = require('stream').Transform
, but this line is also present inv1.4.0
. This is a node core package, so it is expected for some kind of polyfill to be needed, but for some strange reason,v1.4.0
just works without any particular configuration change. 🤷♂️Originally posted by @miguelcobain in #38 (comment)
The text was updated successfully, but these errors were encountered: