question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors in `webpack` break the pipe / task

See original GitHub issue

Hello,

I am using webpack and gulp to build a coffee-script app using webpack watch option.

Any coffee-loader error, such as a syntax error, will just crash webpack along with gulp.

Using plumber or anything to catch the error will prevent gulp from crashing but won’t keep webpack alive.

How can we fix that?

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:16
  • Comments:31 (4 by maintainers)

github_iconTop GitHub Comments

80reactions
aldendanielscommented, Jan 14, 2016

@ArnaudRinquin - Ran into this same issue. It’s a gulp issue I think. There’s a good explanation in https://github.com/gulpjs/gulp/issues/259. The following worked for me:

  return gulp.src('webclient/index.js')
    .pipe(gulpWebpack(webpackConfig, webpack))
    .on('error', function handleError() {
      this.emit('end'); // Recover from errors
    })
    .pipe(gulp.dest('webclient-dist/static'));
20reactions
shamacommented, Jan 19, 2015

I’m not sure. I don’t use plumber or the watch option with webpack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Errors in `webpack` break the pipe / task - - Bountysource
Errors in `webpack ` break the pipe / task ... Hello,. I am using webpack and gulp to build a coffee-script app using...
Read more >
How to show webpack errors in gulp - Stack Overflow
Add an error handler to the webpackStream pipe: .pipe(webpackStream(require("./webpack.config.js"), webpack)) .on('error',function (err) ...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Integrations - webpack
It is not a task runner like Make, Grunt, or Gulp. ... For example, JavaScript can be minified or split into chunks and...
Read more >
Webpack — What is it and is it better than Gulp? - Vanila Blog
Have dead code elimination — that basically means that Webpack can find code that you are not actually using and not add it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found