With the Ultracube mod, nightvision goggles are disabled and the shortcut is hidden behind a technology that doesn't exist (thus it's impossible to enable them). A quick fix is to comment out line 23 in toggle-equipment.lua, like so:
{
type = 'shortcut',
name = 'toggle-night-vision-equipment',
order = 'c[toggles]-b[night-vision]',
action = 'lua',
toggleable = true,
localised_name = {'shortcut.toggle-night-vision-equipment'},
associated_control_input = 'toggle-night-vision-equipment',
-- technology_to_unlock = 'night-vision-equipment',
icon = {
filename = '__base__/graphics/icons/night-vision-equipment.png',
priority = 'extra-high-no-scale',
size = 64,
scale = 0.5,
mipmap_count = 4,
flags = {'gui-icon'}
}
},