Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

No error event on compilation error when watching #126

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

jeroennoten
Copy link
Contributor

@jeroennoten jeroennoten commented Sep 3, 2016

No error event should be emitted on a compilation error when watching, because node stops writing data after an error event. See #34 (comment) for a detailed description.

Instead, we can always safely emit a compilation-error event. This makes sure that others are still able listen for compilation errors. Additionally, when we are not in watch mode, we do emit an error event to keep the behavior the same and do not break backwards compatibility for non-watching tasks.

@tscislo
Copy link

tscislo commented Sep 6, 2016

+1

@theramparts
Copy link

+1
I just ran into this issue as well.

@Zeroster
Copy link

+1

2 similar comments
@martarf
Copy link

martarf commented Sep 13, 2016

+1

@kvet
Copy link

kvet commented Sep 14, 2016

+1

@jeroennoten
Copy link
Contributor Author

If you don't want to wait for this PR to be merged, you can (temporarily) add jeroennoten/webpack-stream#patch-1 to your package.json:

npm install "jeroennoten/webpack-stream#patch-1" --save-dev

@askbeka
Copy link

askbeka commented Sep 14, 2016

+1

3 similar comments
@zackkrida
Copy link

+1

@adiachenko
Copy link

+1

@mogusbi
Copy link

mogusbi commented Sep 21, 2016

+1

@laracasts
Copy link

Can we please get this merged? :)

@deini
Copy link

deini commented Sep 27, 2016

@shama 🙏

@robbymarston
Copy link

+1

1 similar comment
@eyasliu
Copy link

eyasliu commented Sep 30, 2016

+1

@kmck
Copy link

kmck commented Oct 6, 2016

☝️

@belfz
Copy link

belfz commented Oct 10, 2016

+1, please merge!

@mattsims
Copy link

+1 please @shama 🙏

jluxenberg pushed a commit to scootnetworks/webpack-stream that referenced this pull request Oct 26, 2016
see shama#34 (comment)
and shama#126

>> With a little help of @gkiely's comment, I found the root of the problem:
>> When a compilation error occurs,
>>  - webpack-stream emits an error event.
>>  - Node listens for stream error events
>>  - and removes the ondata handler.
>>  - Therefore, it stops writing data to the destination after an error event has occurred.
>> To solve this issue, webpack-stream should not emit an error event on compilation error.
>> At least not when watching. PR shama#126 should solve this.
@JeffreyWay
Copy link

@shama Can you at least add a volunteer as a repo owner, if you're done with this project? I've had a repeating reminder for over a month now to check if the PR has been merged. Would be much appreciated. :)

@ipa1981
Copy link

ipa1981 commented Dec 15, 2016

It somehow looks that this package is abandoned since April.

@jeroennoten
Copy link
Contributor Author

Indeed... So because there was still no response from the author after three monhts, I recently published my fork with this PR included (https://github.com/jeroennoten/webpack-stream) on NPM as webpack-stream-fixed: https://www.npmjs.com/package/webpack-stream-fixed

@ipa1981
Copy link

ipa1981 commented Dec 15, 2016

@jeroennoten I've just switched to it. Thanks!

@jblotus
Copy link

jblotus commented Apr 13, 2017

+1 please transfer ownership or merge this

creal73 pushed a commit to creal73/generator-angular-pro that referenced this pull request May 16, 2017
@tonymihay
Copy link

@shama, please merge this.

@colinrobertbrooks
Copy link

@shama, please merge this. Many of us in this thread are usingwebpack-stream-fixed, which is now behind v3.2.0.

@shama shama merged commit 25b953b into shama:master Aug 7, 2017
@TSMMark
Copy link

TSMMark commented Aug 7, 2017

🎉

glynnforrest added a commit to useperform/perform that referenced this pull request Jan 6, 2018
This gets gulp writing to the destination after a webpack error has
occurred.

shama/webpack-stream#126
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.