[Pkg-javascript-devel] Bug#902507: node-multiparty: FTBFS in buster/sid (TypeError: mime.lookup is not a function)

Petter Reinholdtsen pere at hungry.com
Sat Oct 6 17:02:08 BST 2018


I had a closer look, and became more confused.  First some background
information: The mime library renamed lookup() to getType, while the
mime-types library in sid seem to still provide the lookup() method.

This build problemseem to be caused by a test depending on form-data.js in
the node-form-data package, which expect a mime library with the lookup()
function.  One way to fix this would be to convince form-data.js to use
the mime-types library, but I am unable to find out which library is
actually used and how it is pulled in.

A fix would be to change the code in node-form-data to use getType()
instead of lookup(), but it make more sense if a dependency of
node-form-data could be updated to reflect the changed requirement, to
version 2 of the node-mime library. The problem is that node-form-data
do not (build-)depend on any node-mime* library I can see.  What is
going on here?  What is the best fix for this?

In any case, I suspect this bug should be reassigned node-form-data or
split in two, one for node-multiparty and one for node-form-data.
But given that I have not been able to figure out exactly where
a mime* library is loaded, I do not know where the bug really is
located.

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-javascript-devel mailing list