I have a problem that doesn\'t make much sense to me.
I\'m mapping an array of objects that have a \"name\" and a \"href\" property.
let appleIcons
Adding an empty string fixed the problem for me. So, below code should work:
let appleIcons = _.map(appleIcons, appleIcon => { appleIcon.href = require('' + appleIcon.href); return appleIcon; });