I get the same error. This is with a Factorio installation that has a ton of mods installed. So I made a separate Factorio installation that only has the minimum mods installed. This is working properly, so it seems the error is in another mod. I tried searching the mod files for ore-crushing to find out which one has the error, but haven't been able to find anything useful.