Maybe she doesn't ... need to learn coding at that age?
Really - it's an incredibly over-hyped and overrated skill - especially for the pre-teen set. As in, really, really incredibly over-hyped and overrated.
Meanwhile, you could probably get a lot more mileage out of (and less resistance from) teaching "adjacent" skills like strategy games (ideally physical board games rather than the electronic variety -- but the latter can be perfectly fine as well, if tastefully done). You know, chess, go, backgammon, as well as the modern stuff. Anything involving counting, prediction, planning ("if-this-then-that") and spatial reasoning will definitely give hear a leg up in this realm.
That and ... throw a few Rubik's cubes (and its variants), as well as picture-driven math books her way (especially those with fractals and tessellations and such). Any kind of illustrated science book actually. See of these get any traction.
And don't forget -- a decent scientific calculator. That's one of the things that got me into programming at a tender age (specifically 4th grade) -- discovering things like the x -> 1/(1+x) iteration on my own, and so forth.
Ditto for musical "toys" (aka simple electronic instruments), which are of course another form of computational platform.
As for coding -- if she digs any of the above, she'll get to it on her own, sooner or later. If she doesn't dig any of the above ... then maybe it's just not her bag.
Which is of course perfectly fine as well.