Closed alexander-akait closed 6 years ago
Seeing the same error.
Here's my stacktrace:
(node:31268) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'ext' of null
at module.exports.input (/node_modules/is-gif/index.js:4:42)
at buf (/node_modules/imagemin-gifsicle/index.js:13:7)
at fsP.readFile.then.data (/node_modules/imagemin/index.js:20:60)
at <anonymous>
(node:31268) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31268) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Code:
throw
TypeError: Cannot read property 'ext' of null
.It is happens when you send as
buffer
non binary file. Loaders/plugins usingimagemin
for webpack are broken in some cases./cc @1000ch