According to this changelog:
Breaking change: All constants removed from the deprecated Game scope. Now they are accessible only through the global scope.
You have to amend your code like this:
var bodyExtractor = [CARRY, MOVE, WORK, WORK, WORK];
Game.spawns.Spawn1.createCreep(bodyExtractor, null, {role: "harvester", set: "extractor"});