update: I have found a workaround, by grabbing the players ticking area instead which is usually preferred anyways.
const world = this.getComponent(eventData.data.player, "minecraft:tick_world"); this.log(this.getBlock(world.data.ticking_area, x, y, z));
Issue is present in 1.17.10.21 as well exact same error message
update: I have found a workaround, by grabbing the players ticking area instead which is usually preferred anyways.