@Unique idk if this is the issue, but there are some enums that are in the namespace and I’m not sure if it works when they are inside a namespace (e.g. SpriteFlags and literally every enum that has blocks in makecode). Also,
Or a quicker way which is to do it in halves (first remove one half. If the glitch is solved, it’s in the half you deleted, and vice versa. continue until you find the block(s) with the error.)
(Only delete the blocks with a //% block="..." I think)