flow-status-webpack-plugin icon indicating copy to clipboard operation
flow-status-webpack-plugin copied to clipboard

Errors are not reported since 0.1.6

Open jpolo opened this issue 8 years ago • 4 comments

Here is my configuration :

new FlowStatusPlugin({
      binaryPath: require('flow-bin'),
      quietSuccess: true
}),

With 0.1.5 errors were reported just as usual. Since 0.1.6, no errors are reported, making my build "valid" when it should not.

jpolo avatar Aug 23 '16 09:08 jpolo

It seems that it doesn't work with local flow installation. With global works fine.

vladamx avatar Aug 23 '16 09:08 vladamx

I have a similar problem. I can only see the errors if I set failOnError: true but then, the whole webpack-dev-server stops serving even previous builds

fgarcia avatar Aug 31 '16 12:08 fgarcia

I found the errors could be seen via including the new onSuccess and onError callbacks and sending the output to the console

  new FlowStatusWebpackPlugin({
     onError: function(stdout) {
        console.log(stdout)
     },
     onSuccess: function(stdout){
        console.log(stdout)
     },
     binaryPath: require('flow-bin')
  })

skrigs avatar Oct 14 '16 11:10 skrigs

I had to add failOnError: true to the above example by @skrigs to keep the error output from being cleared. I didn't experience any problems with the dev server after adding it, as @fgarcia said (I'm using 0.1.7)

shaun-stripe avatar Apr 26 '17 20:04 shaun-stripe