When I try to upload my code for Sparki, I get a giant error message

Make sure you’re following all the steps in the Upload Guide, especially selecting Sparki as your board from Tools > Board.