Yeah I'm not sure what the thinking was here. He's overriding this block for the tier 1-2 modules, probably intending to enable crafting them in an EM plant or something? But they become uncraftable in a normal assembler as a result :(
The fix above me should work, but I'd love to get the mod author's input on what the intent was here, since it results in a hard-locked game and a nasty surprise when you reach modules/purple science.
-- yeah whatever okay whatever man i don't work here
if mods["space-age"] then
data.raw["recipe"]["speed-module"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["productivity-module"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["quality-module"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["efficiency-module"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["speed-module-2"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["productivity-module-2"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["quality-module-2"]["categories"] = {"electromagnetics"}
data.raw["recipe"]["efficiency-module-2"]["categories"] = {"electromagnetics"}
end