Microbit v2 error with grove inventor kit

Hi brobear. The microbit foundation were aware of the issue a while back and below is the fix. I’ve tried it in the Beta and it works fine.

It is now resolved in the beta MakeCode editor [https://makecode.microbit.org/beta] could you please try there and see whether the sample works for you now?