friendly-errors-webpack-plugin icon indicating copy to clipboard operation
friendly-errors-webpack-plugin copied to clipboard

Cannot read property 'some' of undefined

Open pepies opened this issue 5 years ago • 0 comments

https://github.com/geowarin/friendly-errors-webpack-plugin/blob/51745900c9dcc582aa250033a856216ca2f64377/src/transformers/esLintError.js#L5

TypeError: Cannot read property 'some' of undefined
    at isEslintError (/srv/www/node_modules/friendly-errors-webpack-plugin/src/transformers/esLintError.js:5:6)
    at transform (/srv/www/node_modules/friendly-errors-webpack-plugin/src/transformers/esLintError.js:9:7)
    at transform (/srv/www/node_modules/friendly-errors-webpack-plugin/src/core/transformErrors.js:28:45)
    at Array.reduce (<anonymous>)
    at applyTransformations (/srv/www/node_modules/friendly-errors-webpack-plugin/src/core/transformErrors.js:29:56)
    at Array.map (<anonymous>)
    at processErrors (/srv/www/node_modules/friendly-errors-webpack-plugin/src/core/transformErrors.js:31:35)
    at FriendlyErrorsWebpackPlugin.displayErrors (/srv/www/node_modules/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:97:29)
    at doneFn (/srv/www/node_modules/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:52:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/srv/www/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
    at AsyncSeriesHook.lazyCompileHook (/srv/www/node_modules/tapable/lib/Hook.js:154:20)
    at /srv/www/node_modules/webpack/lib/Compiler.js:304:22
    at Compiler.emitRecords (/srv/www/node_modules/webpack/lib/Compiler.js:499:39)
    at /srv/www/node_modules/webpack/lib/Compiler.js:298:10
    at /srv/www/node_modules/webpack/lib/Compiler.js:485:14
    at _next0 (eval at create (/srv/www/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
    at eval (eval at create (/srv/www/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
    at /srv/www/node_modules/assets-webpack-plugin/dist/index.js:156:9
    at /srv/www/node_modules/assets-webpack-plugin/dist/lib/output/createQueuedWriter.js:16:7
    at /srv/www/node_modules/assets-webpack-plugin/dist/lib/output/createOutputWriter.js:74:13
    at /srv/www/node_modules/graceful-fs/graceful-fs.js:57:14
    at FSReqCallback.oncomplete (fs.js:154:23)
error Command failed with exit code 1.

It would be great to handle this :) Thanks. I had already solved the issue hacky way, this is just report.

pepies avatar Feb 19 '20 13:02 pepies